/**
 * Premium Institutional Style Sheet
 * Government Arts and Science College, Gingee
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Mukta:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d2847;       /* Dark Institutional Blue */
    --primary-light: #163c66;       /* Medium Blue */
    --secondary-color: #d4a325;     /* Gold Accent */
    --secondary-dark: #b8860b;      /* Dark Gold Accent */
    --accent-color: #f7b731;         /* Bright Warning/Attention Gold */
    --light-bg: #f8fafe;            /* Soft Cream-White BG */
    --dark-text: #1e293b;           /* Slate Grey Text */
    --light-text: #ffffff;
    --border-color: #e2e8f0;
    --font-primary: 'Inter', sans-serif;
    --font-tamil: 'Mukta', sans-serif;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Tamil font integration */
body[lang="ta"] {
    font-family: var(--font-tamil), var(--font-primary);
}

/* Top Header Bar */
.top-header {
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    color: var(--light-text);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}
.top-header a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.top-header a:hover {
    color: var(--secondary-color);
}
.lang-switch-btn {
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--light-text);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all var(--transition-speed);
}
.lang-switch-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* College Logo Brand Header */
.brand-header {
    background-color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.brand-header img.logo {
    max-height: 85px;
    width: auto;
}
.brand-header .college-title {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}
.brand-header .college-sub {
    color: var(--secondary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Navigation */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}
.navbar-custom .nav-link {
    color: #0b1f4d !important;
    font-weight: 500;
    padding: 1rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: #c89b3c !important;
    background-color: transparent;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: #c89b3c;
    transition: width 0.3s ease;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}
.navbar-custom .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.navbar-custom .dropdown-item {
    color: var(--dark-text);
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.navbar-custom .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}
.navbar-custom .dropdown-item:last-child {
    border-bottom: none;
}
.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Sticky Navbar */
.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Hero Carousel */
.hero-slider {
    position: relative;
    height: 550px;
    background-color: #000;
}
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}
.hero-slider img,
.hero-slider-media {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.hero-slider-video {
    opacity: 0.6; /* Let black background darken the video */
}
.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 38, 73, 0.35) 0%, rgba(4, 38, 73, 0.7) 100%);
    z-index: 2;
}
.hero-slider .carousel-caption {
    bottom: 30%;
    text-align: left;
    max-width: 700px;
    z-index: 10;
    left: 8%;
}
.hero-slider .caption-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-slider .caption-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}
.hero-slider .btn-hero {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
}
.hero-slider .btn-hero-primary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
}
.hero-slider .btn-hero-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.hero-slider .btn-hero-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    margin-left: 1rem;
}
.hero-slider .btn-hero-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

/* Notice Ticker Bar */
.ticker-wrap {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    overflow: hidden;
    height: 48px;
    align-items: center;
}
.ticker-title {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}
.ticker-title::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 15px solid var(--accent-color);
}
.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-weight: 500;
    color: var(--primary-color);
}
.ticker-item {
    display: inline-block;
    padding: 0 2rem;
}
.ticker-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.ticker-item a:hover {
    color: var(--secondary-dark);
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Section Header Styles */
.section-title {
    position: relative;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2rem 0 !important;
    border-bottom: 4px solid var(--secondary-color);
    color: #ffffff;
    min-height: auto !important;
}

.page-banner h1 {
    font-weight: 800;
    margin: 0;
    font-size: 2.2rem;
}

.breadcrumb-custom {
    margin-top: 0.4rem;
}.breadcrumb-custom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.breadcrumb-custom a:hover {
    color: var(--secondary-color);
}
.breadcrumb-custom .active {
    color: #ffffff;
}

/* Premium Card Designs */
.premium-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.premium-card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 60%; /* 5:3 Aspect Ratio */
}
.premium-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.premium-card:hover .premium-card-img-wrapper img {
    transform: scale(1.08);
}
.premium-card-body {
    padding: 1.5rem;
}
.premium-card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.premium-card-text {
    font-size: 0.925rem;
    color: #64748b;
}

/* Statistics Counters Block */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 5rem 0;
    position: relative;
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
}
.stat-box {
    text-align: center;
    padding: 1.5rem;
}
.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Principal desk home element */
.principal-desk {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border-left: 6px solid var(--secondary-color);
}
.principal-image {
    border-radius: 8px;
    border: 4px solid var(--border-color);
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* Quick Links Card */
.quicklinks-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
}
.quicklinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quicklinks-list li {
    border-bottom: 1px solid var(--border-color);
}
.quicklinks-list li:last-child {
    border-bottom: none;
}
.quicklinks-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}
.quicklinks-list a:hover {
    color: var(--secondary-dark);
    padding-left: 0.5rem;
    background-color: rgba(212, 163, 37, 0.05);
}

/* Glassmorphism details */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
}

/* Notice Panel Styles */
.notice-box {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.notice-list {
    overflow-y: auto;
    max-height: 380px;
    padding-right: 0.5rem;
}
.notice-list::-webkit-scrollbar {
    width: 6px;
}
.notice-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.notice-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
    border-radius: 6px;
}
.notice-item:hover {
    background-color: rgba(0, 0, 0, 0.01);
}
.notice-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}
.notice-item-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}
.notice-item-title a {
    color: inherit;
    text-decoration: none;
}
.notice-item-title a:hover {
    color: var(--secondary-dark);
}

/* Gallery Lightbox Preview */
.gallery-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding-bottom: 75%;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.gallery-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-grid-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 40, 71, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.gallery-grid-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay-icon {
    color: #ffffff;
    font-size: 2rem;
}

/* Elegant Premium Footer */
.footer-elegant {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.75);
    padding: 4.5rem 0 2rem 0;
    border-top: 6px solid var(--secondary-color);
}
.footer-elegant h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-elegant h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}
.footer-elegant a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all var(--transition-speed);
}
.footer-elegant a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}
.footer-social-links a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    margin-right: 0.5rem;
    color: #ffffff;
    transition: all var(--transition-speed);
}
.footer-social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* Contact Page Design Elements */
.contact-info-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    height: 100%;
}
.contact-item-box {
    display: flex;
    margin-bottom: 1.75rem;
}
.contact-item-box .icon-container {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 163, 37, 0.1);
    color: var(--secondary-dark);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.25rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

/* Map frame design */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 4px solid #ffffff;
}

/* Table layouts & downloads lists */
.premium-table {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}
.premium-table thead {
    background-color: var(--primary-color);
    color: #ffffff;
}
.premium-table th {
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.premium-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

/* Dynamic department pages layouts */
.dept-menu-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
}
.dept-nav-link {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-speed);
    margin-bottom: 0.5rem;
    border-left: 4px solid transparent;
}
.dept-nav-link:hover,
.dept-nav-link.active {
    background-color: rgba(13, 40, 71, 0.05);
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    padding-left: 1.5rem;
}

/* Faculty members cards list */
.faculty-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    height: 100%;
    transition: transform var(--transition-speed);
}
.faculty-card:hover {
    transform: translateY(-5px);
}
.faculty-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem auto;
    border: 4px solid var(--border-color);
}
.faculty-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.faculty-designation {
    color: var(--secondary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.faculty-qual {
    font-size: 0.85rem;
    color: #64748b;
}

/* Pulse animation for notice */
.pulse-badge {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}
