:root {
    /* Corporate Color Palette */
    --primary: #0f172a;
    /* Pearl Slate - Dark Navy */
    --primary-accent: #3b82f6;
    /* Modern Blue */
    --accent: #800000;
    /* Heritage Maroon (for Sreemadam legacy) */
    --accent-hover: #600000;

    /* Heritage/Sreemadam Palette */
    --lite-sandel: #f7f4e9;
    --sandel-color: #e8e2c8;
    --primary-color: #983201;
    --top-bar-text: #4a4a4a;
    --main-nav-text: #ffffff;
    --black-color: #1a1a1a;
    --gray-color: #dddddd;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --bg-footer: #0a0f1d;

    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Fira Sans', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container-x {
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container-x {
        padding: 0 2.5rem;
    }
}

/* Page Hero & Breadcrumbs - Refined Perfect UI */
.breadcrumb-wrapper {
    background: #fafafa;
    padding: 8px 0;
    text-align: left;
}

.breadcrumb-nav {
    display: flex;
    align-items: left;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb-nav a {
    color: #1e293b;
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    opacity: 1;
    color: #004a99;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-weight: 300;
}

.breadcrumb-current {
    color: #cf4824;
    opacity: 1;
}

.page-banner {
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

.page-banner.boxed-banner {
    height: 180px;
    width: 100%;
    background-attachment: scroll;
    box-shadow: var(--shadow-sm);
    margin: 1rem auto 1rem;
}

@media (max-width: 768px) {
    .page-banner.boxed-banner {
        height: 110px;
        border-radius: var(--radius-lg);

    }
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.page-banner-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .page-banner-title {
        font-size: 2.2rem;
    }
}

.breadcrumb-nav.justify-center {
    justify-content: center;
}

.section-padding {
    padding: 4rem 0;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

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

.justify-between {
    justify-content: space-between;
}

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

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.9375rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--bg-page);
    border-color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-accent);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-accent);
}

/* Typography Extensions */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* Utility Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.shadow-premium {
    box-shadow: var(--shadow-premium);
}

/* Helper Utilities */
.text-accent {
    color: var(--accent);
}

.line-height-1 {
    line-height: 1.1;
}

.min-vh-75 {
    min-height: 75vh;
}

.z-1 {
    z-index: 1;
}

.grayscale {
    filter: grayscale(1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.hover-up {
    transition: var(--transition);
}

.hover-up:hover {
    transform: translateY(-10px);
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

.border-y {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.justify-between {
    justify-content: space-between;
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* Announcement Modal Refinements */
#announcementPopup .modal-content {
    background-color: #fffdfc;
}

#announcementPopup .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#announcementPopup .rounded-2xl {
    border-radius: 1.5rem;
}

#announcementPopup img {
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

@media (max-width: 767px) {
    #announcementPopup .modal-dialog {
        margin: 1rem;
    }

    #announcementPopup .p-5 {
        padding: 2rem !important;
    }
}

/* Hero Banner styles moved to components/banner.css */

/* Session Sections */
.session-primary {
    background-color: #eae6de !important;
}

.session-secondary {
    background-color: #e5edee !important;
}

.session-primary,
.session-secondary {
    position: relative;
}

.parchment-bg {
    background-color: #f7f4ec;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.parchment-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.session-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #2c2c2c;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.session-content p {
    font-family: 'Outfit', sans-serif;
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    text-align: justify;
}

.session-img {
    border-radius: 2.5rem !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image-wrapper:hover .session-img {
    transform: scale(1.02);
}

/* session Decorative Buttons */
.btn-session-outline,
.btn-session-solid {
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
    justify-content: space-between;
}

.btn-session-outline {
    border: 1.5px solid #b2b2b2;
    background: rgba(255, 255, 255, 0.3);
    color: #333;
}

.btn-session-solid {
    background: #8b8a5d;
    /* Muted Olive Brown from session */
    color: #fff;
    border: 1.5px solid transparent;
}

.btn-pattern {
    width: 22px;
    height: 22px;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.btn-session-solid .btn-pattern {
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.btn-session-outline:hover {
    background: #fff;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-session-solid:hover {
    background: #7a7952;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 138, 93, 0.3);
}

@media (max-width: 991px) {
    .session-title {
        text-align: center;
    }

    .session-content p {
        text-align: justify;
    }

    .session-primary .mt-5 {
        justify-content: center;
    }
}

.session-secondary {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .session-secondary .row {
        flex-direction: column-reverse;
    }
}

/* Skeleton Loader Styles */
.skeleton {
    background: #ececec;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: var(--radius-md);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.banner-skeleton {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.skeleton-title {
    width: 60%;
    max-width: 600px;
    height: 4.5rem;
    margin-bottom: 1.5rem;
}

.skeleton-subtitle {
    width: 40%;
    max-width: 400px;
    height: 1.25rem;
    margin-bottom: 2.5rem;
}

.skeleton-btn {
    width: 180px;
    height: 50px;
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .banner-skeleton {
        height: 80vh !important;
    }

    .skeleton-title {
        width: 80%;
        height: 3rem;
    }

    .skeleton-subtitle {
        width: 60%;
    }
}

/* Visitors Section (Special Guests) */
.visitors-section {
    background-color: #007a82;
    /* Teal color from wireframe */
    padding: 1.5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.visitors-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.nav-controls .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-controls .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.main-visitor-frame {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1;
    margin: 0 auto;
    position: relative;
    padding: 8px;
}

.main-visitor-frame .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.visitor-name {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
}

.visitor-title {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.visitor-thumbnails {
    gap: 1.5rem;
    padding: 1rem;
}

.thumb-item {
    width: 50px;
    height: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .visitors-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-controls {
        order: 2;
    }

    .visitors-main-title {
        order: 1;
    }

    .visitor-details-card {
        text-align: center;
    }
}