/* Variables for White/Ivory/Gold Premium Theme */
:root {
    --primary-gold: #D4AF37;
    --primary-gold-dark: #C5A028;
    --bg-white: #FFFFFF;
    --bg-ivory: #FDFBF7;
    --bg-gold-tint: #FCFAEF;
    --text-dark: #2C3539;
    --text-muted: #555555;
    --border-light: #EAE6D8;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(212, 175, 55, 0.15);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
    margin-bottom: 50px;
}

.bg-ivory {
    background-color: var(--bg-ivory);
}

.bg-gold-tint {
    background-color: var(--bg-gold-tint);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography & Utilities */
.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
}

.split-text .section-title::after {
    left: 0;
    transform: none;
}

.mt-20 { margin-top: 20px; }

/* Buttons */
.btn-primary, .btn-primary-sm {
    display: inline-block;
    background-color: var(--primary-gold);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid var(--primary-gold);
}

.btn-primary:hover, .btn-primary-sm:hover {
    background-color: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
    box-shadow: var(--shadow-hover);
}

.btn-primary-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-gold);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid var(--primary-gold);
}

.btn-secondary:hover {
    background-color: var(--primary-gold);
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    margin: 0;
    color: var(--primary-gold);
    font-size: 2rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: url('https://images.unsplash.com/photo-1611591437281-460bfbe1220a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    margin-top: 80px; /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Elegant white/gradient overlay instead of dark */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.association-name {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.welcome-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Ticker Section */
.ticker-section {
    background-color: var(--primary-gold);
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker-container {
    display: flex;
    align-items: center;
    container-type: inline-size;
}

.ticker-label {
    background-color: #fff;
    color: var(--primary-gold);
    padding: 5px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Split Layouts */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout > div {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background-color: var(--border-light);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-img {
    background-image: url('../images/about.png');
    background-size: cover;
    background-position: center;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 1px solid var(--primary-gold);
    z-index: -1;
    border-radius: 8px;
}

/* Grids */
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.premium-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-bottom: 3px solid var(--primary-gold);
    transition: var(--transition);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* Rates Table */
.rates-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table th, .rates-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.rates-table th {
    background-color: var(--bg-ivory);
    color: var(--primary-gold-dark);
    font-weight: 600;
}

.rates-table tr:last-child td {
    border-bottom: none;
}

.trend-up {
    color: #27ae60;
}

.trend-down {
    color: #e74c3c;
}

.trend-neutral {
    color: #7f8c8d;
}

/* Leadership Profiles */
.profile-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.profile-img {
    height: 430px;
        overflow: hidden;
    background-color: var(--border-light);
    background-size: cover;
    background-position: center;
}
.profile-img img{
    width: 100%;
}

.placeholder-president { background-image: url('../images/avatar.svg'); background-color: var(--bg-ivory); }
.placeholder-secretary { background-image: url('../images/avatar.svg'); background-color: var(--bg-ivory); }
.placeholder-treasurer { background-image: url('../images/avatar.svg'); background-color: var(--bg-ivory); }

.profile-info {
    padding: 20px;
}

.profile-info h4 {
    margin-bottom: 5px;
    font-size: 19px;
}

.designation {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.member-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--border-light);
    margin: 0 auto 15px;
    background-image: url('../images/avatar.svg');
    background-size: cover;
}

.committee-member h5 {
    margin-bottom: 0px;
    font-size: 1rem;
}

.committee-member span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* News Cards */
.news-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-gold);
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Membership */
.benefits-list {
    margin: 20px 0 30px;
}

.benefits-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check {
    color: var(--primary-gold);
    font-weight: bold;
}

.member-image-box {
    position: relative;
    height: 400px;
    background-image: url('../images/membership.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.membership-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: #fff;
    padding: 30px;
    box-shadow: var(--shadow-hover);
    border-radius: 4px;
    border-top: 4px solid var(--primary-gold);
}

.membership-badge h3 {
    margin: 0;
    color: var(--primary-gold-dark);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 0;
}

.footer h2, .footer h3 {
    color: #fff;
}

.footer h2 {
    color: var(--primary-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.brand-col p {
    color: #aaa;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.social-links a:hover {
    background-color: var(--primary-gold);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-col address p {
    color: #aaa;
    margin-bottom: 10px;
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    color: #777;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }
    
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .association-name {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    .split-layout > div{width: 100%;}
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .card-grid-2, .card-grid-3, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .association-name {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}
