/*
Theme Name: Astra Child Theme HP
Theme URI: https://www.allflightspolicy.com/
Description: Custom Astra child theme with specific page templates.
Author: HP
Template: astra
Version: 1.0.0
Text Domain: astra-child-hp
*/

/* --- GLOBAL VARIABLES --- */
:root {
    --tx-primary: #000;
    --tx-accent: #2D68C4;
    --tx-bg-page: #F8FAFC;
    --tx-text: #000;
    --tx-border: #E2E8F0;
}

body { 
    background-color: var(--tx-bg-page); 
    color: var(--tx-text);
}

p {
    font-size: 16px;
}

a:hover, a:focus {
    color: var(--tx-accent);
}

/*--- HEADER SOCIAL ICONS ---*/
.HP-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--tx-border);
    border-radius: 50%;
    color: var(--tx-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Because the SVGs use 'currentColor', this one CSS rule will make the borders AND the icons change color on hover! */
.HP-social-link:hover {
    color: var(--tx-accent);
    border-color: var(--tx-accent);
}

.HP-social-link svg {
    display: block; /* Removes weird browser spacing below SVGs */
}

/* --- CUSTOM CLASSES (Prefix: HP) --- */
/* Example of how to use your required class prefix and variables */
.HP-main-container {
    background-color: #fff;
    border: 1px solid var(--tx-border);
}

.HP-section-title {
    color: var(--tx-primary);
}




/* --- GLOBAL --- */
body.HP-body {
    font-family: "Be Vietnam Pro", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* --- HEADER --- */
.HP-site-header {
    background: #fff;
    border-bottom: 1px solid var(--tx-border);
}
.HP-header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 40px;
}
.HP-site-title a {
    font-size: 32px;
    font-weight: 700;
    color: var(--tx-accent);
    text-decoration: none;
}
.HP-site-title a img {
    max-height: 50px; /* Adjust logo size */
}
.HP-header-right {
    display: flex;
    justify-content: flex-end;
}
.HP-social-icons {
    display: flex;
    gap: 15px;
}
.HP-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--tx-border);
    border-radius: 50%;
    color: var(--tx-primary);
    text-decoration: none;
    font-size: 14px;
}

/* Navigation */
.HP-header-bottom {
    background: var(--tx-bg-page);
    padding: 15px 0;
    display: flex;
    justify-content: center;
}
.HP-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.HP-menu li a {
    text-decoration: none;
    color: var(--tx-primary);
    font-weight: 600;
    font-size: 16px;
}

/* --- TICKER SECTION --- */
.HP-ticker-section {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid var(--tx-border);
    overflow: hidden;
}
.HP-ticker-label {
    background: var(--tx-accent);
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.HP-ticker-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.HP-ticker-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.HP-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}
.HP-ticker-item {
    padding: 0 30px;
}
.HP-ticker-item a {
    color: var(--tx-text);
    text-decoration: none;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}





/* ==========================================================================
   HP FOOTER BOTTOM (COPYRIGHT LEFT, MENU RIGHT)
   ========================================================================== */

.HP-site-footer {
    background: var(--tx-primary);
    color: #fff;
    text-align: center;
    padding: 60px 20px 30px;
    margin-top: 60px;
}
.HP-footer-description p {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 16px;
    color: #ccc;
}

/* Desktop Layout */
.HP-footer-bottom {
    display: flex;
    justify-content: space-between; /* Copyright left, Menu right */
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.HP-copyright {
    font-size: 14px;
    color: #888;
}

.HP-copyright p {
    margin: 0;
}

/* 
   Menu styling - Using stronger selectors and !important 
   to override Astra parent theme defaults 
*/
.HP-footer-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 20px;
    align-items: center;
}

.HP-footer-nav ul li {
    list-style-type: none !important; /* Forces bullets to disappear */
    margin: 0 !important;
    padding: 0 !important;
}

/* Overriding the default blue link color */
.HP-footer-nav ul li a {
    color: #888 !important; 
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.3s ease;
}

.HP-footer-nav ul li a:hover {
    color: #fff !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (1 by 1 Stacking)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* Center the main bottom wrapper */
    .HP-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    /* Stack the menu items 1 by 1 below each other perfectly */
    .HP-footer-nav ul {
        flex-direction: column !important; /* Forces vertical stacking */
        align-items: center;
        gap: 15px;
    }
}