/* Global Styles for Jai Maa Vaishno Devi Educational Trust */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors - Orange/Amber Theme */
    --primary-color: #E65C00;
    /* Orange - Impact */
    --primary-light: #FF7A22;
    --primary-dark: #CC5200;
    --secondary-color: #F5A623;
    /* Golden Amber - Excellence */
    --secondary-dark: #D4920E;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --dark-bg: #2D3436;
    /* Dark Charcoal for hero sections */
    --hero-bg: #2D3436;
    --success: #2e7d32;
    --error: #c62828;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.section-title span {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Top Info Bar */
.top-info-bar {
    background: var(--dark-bg);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-info-left a,
.top-info-left span {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info-left i {
    color: var(--primary-color);
}

.top-info-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-info-right a {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.top-info-right a:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
}

.logo img {
    height: 80px;
    margin-right: 10px;
    border-radius: 50%;
    background: transparent;
}

.logo span {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
    font-size: 0.95rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

/* Blinking Animation */
@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.header-donate-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    animation: blink 1.5s infinite;
    margin-left: 20px;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: auto;
    height: auto;
}

.header-donate-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    animation-play-state: paused;
}

@media (max-width: 992px) {
    .top-info-bar {
        display: none;
    }

    .header-donate-btn {
        display: none;
    }

    .logo img {
        height: 50px;
    }

    .logo span {
        font-size: 1.1rem;
        max-width: 200px;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .logo span {
        font-size: 0.9rem;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .header-donate-btn {
        display: none;
    }
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 60px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-col p {
    color: #f0f0f0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul li {
    color: #f0f0f0;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-col ul li i {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-col a {
    color: #f0f0f0;
    transition: all var(--transition-speed);
    display: inline;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col .contact-email {
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .footer-col .contact-email {
        font-size: 0.75rem;
    }
}

.footer-col i {
    margin-right: 10px;
    color: var(--white);
    width: 20px;
    flex-shrink: 0;
}

.footer-col ul li span {
    color: #f0f0f0;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons i {
    margin-right: 0;
    width: auto;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    margin-right: 15px;
    background: transparent;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #f0f0f0;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

/* Page Header / Hero Section */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

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

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

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
}

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

/* Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}