/*
Theme Name: NIRDA Institute
Theme URI: https://nirdainstitute.org
Author: NIRDA Digital Team
Description: A professional, research-focused WordPress theme built for NIRDA.
Version: 1.0.0
License: GPL v2 or later
Text Domain: nirda
*/

/* ========== RESET & BASE ========== */

/* Logo Image Styles */
.logo img {
    max-height: 55px;
    width: auto;
    display: block;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}
/* Custom Logo Override for WordPress core */
.custom-logo-link {
    display: flex;
    align-items: center;
}
.custom-logo {
    max-height: 55px;
    width: auto;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0A1628;
    --navy-light: #1A2A44;
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --gray-bg: #F8FAFC;
    --gray-border: #E2E8F0;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --white: #FFFFFF;
    --max-width: 1280px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== GRID SYSTEM ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding: 0 16px;
    flex-shrink: 0;
    width: 100%;
}
@media (min-width: 768px) {
    .col-6 { width: 50%; }
    .col-4 { width: 33.333%; }
    .col-3 { width: 25%; }
    .col-8 { width: 66.666%; }
    .col-12 { width: 100%; }
}
@media (min-width: 1024px) {
    .col-lg-6 { width: 50%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-3 { width: 25%; }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-main);
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}
.btn-dark {
    background: var(--navy);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--blue);
    color: var(--white);
}

/* ========== HEADER & NAVIGATION - FIXED ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
    background: transparent;
    min-height: 70px;
}
.site-header.scrolled {
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}
.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Main Navigation - HORIZONTAL */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list li {
    position: relative;
    list-style: none;
}

.nav-menu-list a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-menu-list a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 8px;
}
.nav-actions .btn-small {
    padding: 8px 20px;
    border-radius: 60px;
    background: #2563EB;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nav-actions .btn-small:hover {
    background: #ffffff;
    color: #0A1628;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu-list {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    
    .nav-menu-list a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 16px;
    }
    
    .nav-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-actions .btn-small {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

@media (min-width: 1025px) {
    .nav-menu {
        display: flex !important;
    }
}

/* ========== HERO ========== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero h1 span { color: var(--blue); background: linear-gradient(135deg, #60A5FA, #2563EB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image img { border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

/* ========== GATEWAY ========== */
.gateway {
    padding: 80px 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 5;
}
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.gateway-card {
    text-align: center;
    padding: 24px 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--gray-bg);
    cursor: pointer;
}
.gateway-card:hover {
    transform: translateY(-8px);
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(37,99,235,0.25);
}
.gateway-card .icon { font-size: 36px; margin-bottom: 8px; display: block; }
.gateway-card h4 { font-weight: 600; font-size: 16px; }

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}
.section-dark { background: var(--navy); color: var(--white); }
.section-gray { background: var(--gray-bg); }

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

.core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.core-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-border);
    transition: all 0.3s;
}
.core-card:hover { border-color: var(--blue); box-shadow: 0 12px 40px rgba(37,99,235,0.08); }
.core-card .icon { font-size: 40px; margin-bottom: 16px; color: var(--blue); }
.core-card h3 { font-size: 22px; margin-bottom: 8px; }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.impact-number {
    font-size: 52px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}
.impact-label { font-size: 18px; color: var(--text-gray); margin-top: 8px; }

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    transition: all 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.card-img { height: 200px; background: var(--gray-border); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body .tag { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); font-weight: 600; }
.card-body h3 { font-size: 20px; margin: 8px 0; }

.cta-final {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy), #1A2A44);
    text-align: center;
}
.cta-final h2 { font-size: 44px; color: var(--white); max-width: 700px; margin: 0 auto 24px; }
.cta-final p { color: rgba(255,255,255,0.7); font-size: 20px; margin-bottom: 36px; }

.site-footer {
    background: #050D1A;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 16px; font-size: 18px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 14px; }

@media (max-width: 768px) {
    .hero { min-height: 90vh; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .gateway { margin-top: -30px; }
    .gateway-grid { grid-template-columns: repeat(3, 1fr); padding: 20px; }
    .section { padding: 50px 0; }
    .impact-number { font-size: 38px; }
}