/* 
   ================================================
   Global UI/UX Redesign System (V4 Aggressive)
   ================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    --primary: #0A3D62;
    --accent: #B8860B; /* Darker Gold for better accessibility contrast on white */
    --accent-light: #D4AF37; /* Original gold for dark backgrounds */
    --bg-main: #F8FAFC;
    --light-blue: #EAF4FF;
    --btn-primary: #0F4C81;
    --btn-hover: #0B3C66;
    
    --text-main: #1e293b;
    --text-muted: #475569;
    
    --radius-sm: 8px;
    --radius-md: 16px; /* Increased to 16px for softer cards */
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-hover: 0 25px 30px -5px rgba(0,0,0,0.15), 0 15px 15px -5px rgba(0,0,0,0.08); /* Stronger shadow */
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
}

/* Base Overrides */
body {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-main) !important;
    background-color: var(--bg-main) !important;
    line-height: 1.7 !important; 
    font-size: 18px !important; 
}

/* Typography Hierarchy */
h1, .h1 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 56px !important; 
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
h2, .h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 34px !important; /* Increased to 34px */
    font-weight: 700;
    color: var(--primary);
}
h3, .h3, .subheading {
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important; /* Increased to 22px */
    font-weight: 600;
    color: var(--primary);
}
p {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important; /* Increased to 17px */
    line-height: 1.7 !important;
    color: var(--text-muted);
}

/* Typography Utilities */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-accent-light { color: var(--accent-light) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light-blue { background-color: var(--light-blue) !important; }

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover { color: var(--btn-hover); }

/* Modern Cards */
.card-modern {
    background: #ffffff;
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}
.card-modern:hover {
    transform: translateY(-8px); /* Upgraded lift */
    box-shadow: var(--shadow-hover);
}

/* Modern Image Cards */
.img-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    display: block;
}
.img-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.img-card:hover img {
    transform: scale(1.05);
}

/* Modern Buttons */
.btn-modern {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 30px !important; 
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px; /* Increased */
}
.btn-primary-custom {
    background-color: var(--btn-primary) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.2);
}
.btn-primary-custom:hover {
    background-color: var(--btn-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 60, 102, 0.3);
    color: #ffffff !important;
}

/* PDF Document Links styling */
.pdf-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    margin-bottom: 15px;
}
.pdf-card:hover {
    background-color: var(--light-blue);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations */
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.slide-up { animation: slideUp 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.92) 0%, rgba(15, 76, 129, 0.85) 100%), url('images1/hero-fossil.png') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    color: white;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    font-size: 24px;
}
#backToTop:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}
/* Modern Header Redesign Requirements */
.header-modern {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    min-height: 80px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.header-brand-title {
    font-family: 'Inter', sans-serif !important;
    color: #073B63 !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    line-height: 1.1;
}
.header-brand-tagline {
    font-family: 'Inter', sans-serif !important;
    color: #6B7280 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}
.header-nav-link {
    font-family: 'Inter', sans-serif !important;
    color: #073B63 !important;
    font-weight: 600 !important; /* Thicker */
    font-size: 15px !important; /* Reduced by ~20% */
    padding: 8px 16px !important;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease !important;
}
.header-nav-link:hover, .header-nav-link:focus, .header-nav-link.active {
    background-color: #EEF6FF !important;
    color: #073B63 !important;
}


/* Dropdown specific */
@media (min-width: 992px) {
    .dropdown:hover .header-dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        display: block;
    }
    .header-dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        position: absolute;
    }
}
.header-dropdown-menu {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    padding: 8px 0 !important;
    min-width: 220px !important;
    margin-top: 8px !important;
    z-index: 1060;
    transition: all 0.3s ease;
}
.header-dropdown-item {
    font-family: 'Inter', sans-serif !important;
    color: #1F2937 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
}
.header-dropdown-item:hover {
    background-color: #EEF6FF !important;
    color: #073B63 !important;
}
.header-dropdown-item i {
    color: #6B7280;
    transition: color 0.2s;
}
.header-dropdown-item:hover i {
    color: #1677FF !important;
}

/* Search Box */
.header-search-input {
    border: 1px solid #E5E7EB !important;
    border-radius: 20px !important;
    padding: 6px 16px 6px 36px !important;
    font-size: 14px !important;
    color: #1F2937 !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}
.header-search-input:focus {
    border-color: #1677FF !important;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2) !important;
    outline: none !important;
}
/* --- Premium UI Enhancements (V2) --- */

/* 1. Expand global container width for richer layout */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        width: 90% !important;
        max-width: 1700px !important;
    }
}

/* 2. Hero Background Zoom */
.hero-bg-layer {
    position: absolute;
    top: -5%; left: -5%; right: -5%; bottom: -5%;
    background: url('../images1/hero-fossil.png') center/cover no-repeat fixed;
    animation: heroZoom 25s infinite alternate linear;
    z-index: 0;
}
.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(10, 61, 98, 0.65), rgba(10, 61, 98, 0.85));
    z-index: 0;
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* 3. Hero Button Hover Effects */
.btn-hero-primary {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: linear-gradient(135deg, var(--btn-primary), var(--primary)) !important;
    border: none !important;
}
.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(10, 61, 98, 0.4) !important;
    background: linear-gradient(135deg, var(--primary), #002244) !important;
}
.btn-hero-outline {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-hero-outline:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* 4. Statistics Card Enhancements */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.stat-card:hover {
    background-color: rgba(255,255,255,0.3) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

/* 5. Animated Read More Arrow */
.read-more-btn i {
    transition: transform 0.3s ease;
}
.read-more-btn:hover i {
    transform: translateX(8px);
}

/* 6. President Left Border Accent */
.president-quote-card {
    border-left: 8px solid var(--accent) !important;
}

/* Base Button Hover (Fallback) */
.btn {
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
}
.btn:hover:not(.carousel-control-prev):not(.carousel-control-next) {
    transform: translateY(-2px) scale(1.02);
}
.social-icon:hover {
    transform: translateY(-3px) scale(1.1) !important;
}

/* --- Internal Pages & Awards UI Polish --- */

/* Header Nav Links */
.header-nav-link {
    position: relative;
    padding-bottom: 5px;
    color: var(--primary) !important;
    transition: color 0.3s ease;
}

.header-nav-link:hover, .header-nav-link.active {
    color: var(--accent) !important;
}

/* Internal Page Banner */
.internal-banner {
    background: linear-gradient(135deg, #072942 0%, #0B3C66 100%);
    padding: 60px 0 40px 0;
    color: white;
    margin-bottom: 40px;
    border-bottom: 5px solid var(--accent);
}
.internal-banner h1 {
    font-size: 40px !important;
    color: white !important;
    margin-bottom: 10px;
}
.internal-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
.internal-breadcrumb a {
    color: var(--accent-light);
}

/* Awards Table Refinements */
.award-table-modern th {
    background-color: var(--bg-main) !important;
    color: var(--primary) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border-bottom: 2px solid #e2e8f0;
}
.award-table-modern td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.award-table-modern tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.award-table-modern tbody tr:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
}
.recipient-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}
.recipient-org {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* Fixed Recipient Image Container */
.recipient-photo-container {
    width: 90px;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.recipient-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.recipient-photo-container img:hover {
    transform: scale(1.05);
}

/* Mobile Awards Cards (Converts table to cards on small screens) */
@media (max-width: 767px) {
    /* Preserve table structure but prevent squishing to enable horizontal scrolling via .table-responsive */
    .award-table-responsive {
        min-width: 800px;
    }
}

/* Fix Dropdown Visibility */
.header-dropdown-menu { z-index: 9999 !important; }
.dropdown:hover .header-dropdown-menu { z-index: 9999 !important; }

/* Custom Slider Controls */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin: 0 20px;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
