/*
Theme Name: SGMSSanstha Theme
Theme URI: https://example.com/sgmssanstha
Description: Custom WordPress Theme for SGMSSanstha
Author: SGMSSanstha Web Team
Author URI: https://example.com
Version: 1.0.0
Text Domain: sgmssanstha
*/

:root {
    /* Royal Blue & Gold Premium Palette */
    --primary-color: #002366;
    /* Deep Royal Blue */
    --secondary-color: #001845;
    /* Darker Royal for Footer */
    --accent-color: #C5B358;
    /* Antique Gold */
    --bg-color: #F9F9F9;
    /* Off-White background */
    --bg-accent: #FFFFFF;
    /* Pure white for cards */
    --text-color: #111827;
    /* Deep rich slate */
    --text-muted: #4B5563;
    /* Readable premium gray */

    /* Typography */
    --header-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--header-font);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Lists */
.premium-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.premium-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.premium-list-light li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.premium-list li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #22c55e;
    /* Soft green checkmark */
    font-size: 14px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: var(--header-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-radius: 8px;
    /* Softer, modern edges */
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-gold-solid {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 15px;
    border-radius: 9999px;
    padding: 12px 32px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-gold-solid:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(197, 179, 88, 0.3);
    transform: translateY(-2px);
}

.btn-gold-outline {
    background-color: transparent;
    color: var(--accent-color);
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--accent-color);
    border-radius: 9999px;
    padding: 12px 32px;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-gold-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Navigation --- */
header {
    background-color: transparent;
    /* Changed from light blur to transparent default */
    border-bottom: 1px solid transparent;
    position: fixed;
    /* Changed from sticky to fixed to overlay hero */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.glass-nav {
    background: rgba(0, 35, 102, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(197, 179, 88, 0.2);
}

header.glass-nav .logo,
header.glass-nav .nav-links a,
header.glass-nav .mobile-menu-btn {
    color: var(--bg-color);
}

header.glass-nav .nav-links a:hover,
header.glass-nav .nav-links a.active {
    color: var(--accent-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--header-font);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    /* Default transparent state logo */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

header.glass-nav .logo {
    color: var(--accent-color);
    /* Overridden when blurred */
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--header-font);
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    /* Default transparent state link */
    position: relative;
    transition: var(--transition);
}

header.glass-nav .nav-links a {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

header.glass-nav .nav-links a:hover,
header.glass-nav .nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
}

header.glass-nav .mobile-menu-btn {
    color: #ffffff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 36, 71, 0.9), rgba(11, 36, 71, 0.4));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 30px;
    font-weight: 300;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sections --- */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title.left-align {
    text-align: left;
}

.section-title.left-align::after {
    margin: 15px 0 0;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 4px;
    /* Pill shaped underline */
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: -30px auto 50px;
    line-height: 1.8;
}

.bg-light {
    background-color: var(--bg-accent);
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.bento-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 35, 102, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-item.gallery-img-container:hover .gallery-overlay {
    opacity: 1;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 35, 102, 0.9) 0%, rgba(0, 35, 102, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-item:hover .bento-content {
    transform: translateY(0);
}

.bento-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #fff;
}

.bento-content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.bento-col-2 {
    grid-column: span 2;
}

.bento-row-2 {
    grid-row: span 2;
}


/* --- Cards --- */
.card {
    background: #fff;
    border-radius: 20px;
    /* Modern structural roundness */
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    /* Structured tech static shadow */
    transition: var(--transition);
    text-align: left;
    /* No more messy centered cards */
    border: 1px solid #E2E8F0;
    /* Premium strict bounding box line */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- About Image & Leadership --- */
.about-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 31, 63, 0.15);
}

.leadership-img {
    filter: grayscale(100%);
    transition: var(--transition);
    border-radius: 50%;
    border: 3px solid transparent;
    /* Replaces previous hardcoded border */
}

.card:hover .leadership-img {
    filter: grayscale(0%);
    border-color: var(--accent-color);
}

.leadership-linkedin {
    opacity: 0;
    color: #0e76a8;
    /* LinkedIn color or keep gold */
    transition: var(--transition);
    font-size: 24px;
    align-self: flex-start;
    margin-top: 10px;
}

.card:hover .leadership-linkedin {
    opacity: 1;
}

/* --- Testimonials --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--accent-color);
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.testimonial-name {
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
}

.testimonial-course {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Call to Action --- */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta-section .section-title {
    color: #fff;
}

.cta-section .section-title::after {
    background-color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: #aaa;
    margin-top: 15px;
}

.footer-links h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* --- Premium Utilities --- */
.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.bg-gray {
    background-color: #F8FAFC;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.premium-list {
    list-style: none;
    counter-reset: custom-counter;
}

.premium-list li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.premium-list li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 133, 27, 0.3);
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .grid-2,
    .grid-3 {
        gap: 40px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-col-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }

    .cta-section {
        padding: 60px 0 !important;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .bento-col-2,
    .bento-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen by default */
        width: 80%;
        /* 80% of width on mobile */
        max-width: 350px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 90px 30px 30px;
        /* Padding for close button clearance */
        gap: 10px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        opacity: 1;
        /* Always opaque */
        transform: none;
        /* Remove previous transform */
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        transform: none;
        opacity: 1;
    }

    /* Center buttons on mobile */
    .btn,
    .btn-gold-solid,
    .btn-gold-outline {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-links a {
        display: block;
        text-align: left;
        padding: 15px 20px;
        min-height: auto;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 17px;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        justify-content: flex-start;
        transition: var(--transition);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-color) !important;
        background-color: rgba(197, 179, 88, 0.1);
        padding-left: 25px;
        /* Slight indentation on hover */
    }

    .nav-links a::after {
        display: none;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column !important;
    }

    .newsletter-form button {
        width: 100%;
        margin-top: 10px;
    }
}