/* --- Modern Design System: "Tech Executive" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;700&display=swap');

:root {
    /* Color Palette */
    /* --primary: #2563eb; */
    --primary: #603eaf;
    /* Vibrant Blue */
    /* --primary-dark: #1e40af; */
    --primary-dark: #6f3aec;
    /* Deep Royal */
    --accent: #f59e0b;
    /* Amber/Gold Accent */
    --surface: #ffffff;
    --background: #f3f4f6;
    /* Cool Gray 100 */
    --text-main: #1f2937;
    /* Gray 800 */
    --text-muted: #6b7280;
    /* Gray 500 */

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Noto Sans Devanagari', sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    width: 95%;
    /* Responsive width */
    margin: 0 auto;
}

/* --- Header Section --- */
.top-header {
    background: var(--surface);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 20;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group img {
    height: 70px;
    transition: transform 0.3s;
}

.logo-group img:hover {
    transform: scale(1.05);
}

.header-title {
    text-align: center;
}

.header-title h1 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.header-title p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

/* --- Navigation (Top Horizontal) --- */
.main-nav {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--accent);
}

.main-nav .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    display: flex;
    justify-content: center;
}

/* Navigation Right Actions Group */
.nav-right-group {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

/* Footer Social Icons styling */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-socials .social-icon {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.footer-socials .social-icon:hover {
    background: var(--accent);
    color: var(--text-main) !important;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-socials .social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Navigation Login Button */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    color: #1f2937 !important;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, var(--accent) 100%);
    color: #000 !important;
}

.login-btn svg {
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

.mobile-only {
    display: none !important;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Specific Brand Colors */
.x-icon,
.fb-icon {
    color: #fff;
    /* Both icons white on dark */
}

.fb-icon svg,
.x-icon svg {
    fill: currentColor;
}

.nav-item a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
}

.nav-item a:hover,
.nav-item a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-color: var(--accent);
}

.mobile-toggle {
    display: none;
}

/* --- Sidebar (Vertical Professional) --- */
.side-nav-wrapper {
    grid-column: 1 / 2;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: fit-content;
    min-width: 0;
    /* Prevents blowing out grid */
}

.side-nav {
    display: flex;
    flex-direction: column;
}

.accordion-header {
    width: 100%;
    background: #fff;
    color: var(--text-main);
    padding: 1rem 1.5rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}

.accordion-header:hover {
    background: #f9fafb;
    color: var(--primary);
}

.accordion-header.active {
    background: var(--primary-dark);
    color: #fff;
    border-bottom: 1px solid var(--primary);
}

.accordion-content {
    background: #fff;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.sidebar-scroll-area {
    height: 450px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-top: none;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 500;
}

.accordion-content li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.accordion-content li a:hover {
    color: var(--primary);
    padding-left: 2rem;
    background: #f9fafb;
}

/* --- Hero Slider --- */
.hero-slider {
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: 100% 100%;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(170, 168, 168, 0.2)); */
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
    transform: translateY(20px);
    transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* News Ticker */
.news-ticker {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: stretch;
}

.ticker-title {
    background: var(--accent);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-item {
    padding: 0 2rem;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    font-weight: 500;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Layout Grid (Fluid & Safe) --- */
.main-content-grid {
    display: grid;
    /* 20% sidebars, rest for content. minmax(0, 1fr) PREVENTS overflow */
    grid-template-columns: 20% minmax(0, 1fr) 20%;
    gap: 1.5rem;
    padding-bottom: 4rem;
    margin-top: 2rem;
    align-items: start;
}

/* --- Single Column Layout (Inner Pages) --- */
.main-content-single {
    display: block;
    max-width: 1000px;
    /* Reading width */
    margin: 2rem auto;
    padding-bottom: 4rem;
    min-height: 60vh;
}

/* Specific wrappers for grid areas */
.side-nav-wrapper {
    grid-column: 1 / 2;
    min-width: 0;
    /* Important for flex/grid shrinking */
}

.content-area {
    grid-column: 2 / 3;
    min-width: 0;
    /* CRITICAL: Prevents content from forcing column wider */
    width: 100%;
}

.sidebar-widgets-wrapper {
    grid-column: 3 / 4;
    min-width: 0;
    /* Important */
}

/* Responsive: Tablet (2 col) */
@media (max-width: 1200px) {
    .main-content-grid {
        grid-template-columns: 260px 1fr;
    }

    .sidebar-widgets-wrapper {
        grid-column: 1 / -1;
        order: 3;
    }
}

/* Responsive: Mobile (1 col) */
@media (max-width: 768px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        display: block;
    }

    .side-nav-wrapper {
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .sidebar-widgets-wrapper {
        order: 3;
    }
}

/* --- Cards & Content --- */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Chairman Message Specifics */
.modern-quote {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
}

.modern-quote p {
    margin-bottom: 1.5rem;
}

.quote-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e5e7eb;
}

.quote-highlight {
    font-weight: 700;
    color: var(--primary-dark);
}

.author-details {
    text-align: right;
}

.author-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.author-role {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Sidebar Widgets --- */
.sidebar-widget {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.widget-title {
    background: var(--primary-dark);
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.link-list {
    padding: 1rem 0;
}

.link-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.link-list li a:hover {
    background: #f9fafb;
    border-left-color: var(--accent);
    color: var(--primary);
}

.badge-new {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* --- Marquee/News Scroll (Updated) --- */
.marquee-container {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.marquee-content {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    position: absolute;
    width: 100%;
    animation: marquee-vertical 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-vertical {
    0% {
        top: 100%;
    }

    100% {
        top: -180%;
    }
}

.marquee-content li {
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.marquee-content li a {
    display: inline-block;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.2s;
    font-weight: 500;
}

.marquee-content li a:hover {
    color: var(--primary);
}

.new-icon {
    vertical-align: middle;
    margin-left: 5px;
}

/* --- Footer --- */
.site-footer {
    background: #111827;
    /* Gray 900 */
    color: #9ca3af;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.footer-col h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 1.25rem;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links a {
    display: block;
    padding: 0.4rem 0;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
}

/* --- Tablet Responsive Adjustment for desktop view (1025px - 1300px) --- */
@media (min-width: 1025px) and (max-width: 1300px) {
    .nav-item a {
        padding: 1rem 1rem;
        font-size: 0.95rem;
    }
}

/* --- Mobile Responsive (Header & Navigation) --- */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.25rem;
    }

    .logo-group img {
        height: 60px;
    }

    /* Navigation */
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-dark);
        position: absolute;
        /* Take out of flow */
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        top: 0.75rem;
        right: 1.5rem;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
        /* Above list */
    }

    .nav-right-group {
        display: none;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-login-btn {
        margin: 15px 20px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
        color: #1f2937 !important;
        padding: 0.75rem 1.5rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.95rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

    .mobile-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(245, 158, 11, 0.4);
        background: linear-gradient(135deg, #fbbf24 0%, var(--accent) 100%);
        color: #000 !important;
    }

    .mobile-login-btn svg {
        transition: transform 0.3s ease;
    }

    .mobile-login-btn:hover svg {
        transform: rotate(-10deg) scale(1.1);
    }

    .mobile-login-btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .main-nav {
        height: auto;
        min-height: 60px;
        /* Minimal height for bar */
        position: sticky;
    }
}

/* --- Mobile Responsive (General Page Layout) --- */
@media (max-width: 768px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        display: flex;
        /* Use Flexbox for easy column ordering */
        flex-direction: column;
    }

    .hero-slider {
        height: 300px;
        order: 1;
        /* First: Slider */
        width: 100%;
        margin-bottom: 0;
        /* Remove bottom margin to attach to next item if needed, but side-nav has margin */
    }

    .content-area {
        display: contents;
        /* Flattens structure so children participate in flex container */
    }

    /* Layout Order : Slider -> Ticker -> Sidebar Left (Other Info) -> Chairman Message -> Sidebar Right */
    .news-ticker {
        order: 2;
        /* Second: Ticker */
        width: 100%;
        margin-bottom: 2rem;
        margin-top: 2rem;
        /* Spacing from slider */
    }

    .side-nav-wrapper {
        order: 3;
        /* Third: Other Information */
        margin-bottom: 2rem;
        width: 100%;
        display: block;
    }

    .welcome-card {
        order: 4;
        /* Fourth: Chairman Message */
        margin-bottom: 2rem;
    }

    .sidebar-widgets-wrapper {
        order: 5;
        /* Fifth: Important Links */
        width: 100%;
        display: block;
        margin-bottom: 2rem;
    }

    /* Sidebar adjustments */
    .sidebar-scroll-area {
        height: auto;
        max-height: 350px;
    }

    .marquee-container {
        height: 300px;
        /* Decrease height on mobile */
    }

    /* News Ticker Mobile */
    .news-ticker {
        flex-direction: column;
    }

    .ticker-title {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .ticker-content {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::before {
        display: none;
        /* Remove left border decoration on mobile/center */
    }

    .footer-col h3 {
        padding-left: 0;
        text-decoration: underline;
        text-decoration-color: var(--accent);
        text-underline-offset: 5px;
    }

    .footer-socials {
        justify-content: center;
    }

    .quote-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .author-details {
        text-align: center;
    }
}

/* --- Meeting Page Styles --- */
.meeting-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.meeting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.meeting-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meeting-date {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    background: rgba(96, 62, 175, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.meeting-body {
    padding: 1.5rem;
}

.meeting-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.doc-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.intro-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary);
}

.intro-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.intro-box p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #4b5563;
}

/* --- Responsive Table Styles (Common & Enhanced) --- */
.links-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.links-table th,
.links-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.links-table th {
    background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    white-space: nowrap;
}

.links-table tbody tr {
    transition: all 0.2s ease-in-out;
}

.links-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.links-table tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.005);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.links-table td:first-child {
    width: 70px;
    text-align: center;
    font-weight: 600;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
}

.link-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1e293b;
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.link-url {
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Enhanced Button Style */
.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-visit:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.btn-visit span {
    font-size: 1.1em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .links-table {
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .links-table thead {
        display: none;
    }

    .links-table tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 1.25rem;
        border: 1px solid #e2e8f0;
    }

    .links-table tbody tr:hover {
        transform: none;
    }

    .links-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }

    .links-table td:first-child {
        display: none;
    }

    .links-table td:last-child {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }

    .btn-visit {
        justify-content: center;
        width: 100%;
    }
}

/* --- Timeline Layout Styles --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 0 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--primary);
    border: 4px solid #f3f4f6;
    top: 24px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.right .timeline-icon {
    left: -12px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #fff;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(96, 62, 175, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 500;
}

/* Arrows */
.timeline-item.left .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 28px;
    width: 0;
    z-index: 1;
    right: -10px;
    border: medium solid #fff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

.timeline-item.right .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 28px;
    width: 0;
    z-index: 1;
    left: -10px;
    border: medium solid #fff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

/* Border Arrow Correction */
.timeline-item.left .timeline-content::after {
    content: " ";
    height: 0;
    position: absolute;
    top: 27px;
    width: 0;
    z-index: 0;
    right: -12px;
    border: medium solid #e2e8f0;
    border-width: 11px 0 11px 11px;
    border-color: transparent transparent transparent #e2e8f0;
}

.timeline-item.right .timeline-content::after {
    content: " ";
    height: 0;
    position: absolute;
    top: 27px;
    width: 0;
    z-index: 0;
    left: -12px;
    border: medium solid #e2e8f0;
    border-width: 11px 11px 11px 0;
    border-color: transparent #e2e8f0 transparent transparent;
}


/* Mobile Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-icon {
        left: 19px !important;
        right: auto;
    }

    /* Fix Arrows for mobile (all point left) */
    .timeline-item.right .timeline-content::before,
    .timeline-item.left .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }

    .timeline-item.right .timeline-content::after,
    .timeline-item.left .timeline-content::after {
        left: -12px;
        right: auto;
        border-width: 11px 11px 11px 0;
        border-color: transparent #e2e8f0 transparent transparent;
    }
}