/* ============================================
   PASTEC - Police Aerial System & Technology Centre
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #0f172a;
    --primary-dark: #0b1120;
    --primary-light: #1e40af;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    min-width: 0;
}

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right a {
    color: var(--text-white);
    font-weight: 500;
}

.top-bar-right a:hover {
    color: var(--secondary-color);
}

/* Header */
.main-header {
    background: var(--text-white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo img,
.logo-right img {
    max-height: 130px;
    height: auto;
    width: auto;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.header-text p {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-cta .btn {
    padding: 12px 30px;
    font-weight: 600;
}

/* Navigation */
.main-nav {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

html {
    scroll-padding-top: 70px;
}

.main-nav .container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
}

.nav-menu li {
    position: relative;
    flex: 0 0 auto;
}

.nav-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.12);
    border-bottom-color: var(--secondary-color);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 100px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.page-banner-interactive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--banner-mouse-x, 50%) var(--banner-mouse-y, 50%), rgba(255, 140, 0, 0.55) 0%, rgba(255, 255, 255, 0.40) 35%, rgba(0, 150, 50, 0.55) 70%, transparent 95%);
    filter: blur(30px);
    mix-blend-mode: screen;
    z-index: 0;
    opacity: 0.9;
    transition: background 0.05s ease-out;
    animation: banner-tri-pulse 4s ease-in-out infinite alternate;
}

@keyframes banner-tri-pulse {
    0% { opacity: 0.75; }
    100% { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 150px;
    animation: float 30s infinite linear;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Hero Carousel / Slider */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.hero-slides {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.hero-slide {
    width: 100%;
    flex-shrink: 0;
}

.hero-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
    background: #fff;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: 0.3s;
    font-size: 18px;
}

.hero-nav:hover {
    background: rgba(0,0,0,0.7);
}

.hero-prev { left: 15px; }
.hero-next { right: 15px; }

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--text-white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--text-white);
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--primary-dark);
    color: var(--text-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--text-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.about-features i {
    color: var(--success-color);
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--text-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 48px;
}

.course-content {
    padding: 25px;
}

.course-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Faculty Section */
.faculty-section {
    padding: 80px 0;
    background: var(--text-white);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 64px;
    overflow: hidden;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-content {
    padding: 25px;
    text-align: center;
}

.faculty-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.faculty-card .designation {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.faculty-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 48px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: var(--text-white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 12px;
    opacity: 0.8;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--text-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 48px;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-card a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.news-card a:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    background: var(--text-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Registration Form */
.registration-section {
    padding: 80px 0;
    background: var(--text-white);
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.file-upload {
    border: 2px dashed var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(26, 95, 122, 0.05);
}

.file-upload i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload p {
    color: var(--text-light);
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Downloads Section */
.downloads-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.download-card {
    background: var(--text-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 24px;
    flex-shrink: 0;
}

.download-info h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.download-info p {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
}

.download-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.download-btn:hover {
    color: var(--primary-dark);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--text-white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(26, 95, 122, 0.05);
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    display: none;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

details[open] .faq-answer,
.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    display: block;
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-warning {
    background: #ffe;
    color: #c93;
    border: 1px solid #fc9;
}

.alert-info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
}

.table tr:hover {
    background: var(--bg-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .page-banner h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-cta {
        width: 100%;
    }
    
    .header-cta .btn {
        display: block;
    }
    
    .main-header {
        position: relative;
        top: auto;
        z-index: auto;
    }
    
    .main-nav {
        top: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background: var(--primary-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .features-grid,
    .courses-grid,
    .faculty-grid,
    .gallery-grid,
    .news-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .registration-form {
        padding: 20px;
    }
}

/* Dropdown and interactive enhancements */
.nav-menu li {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
}

.sub-menu li {
    display: block;
    width: 100%;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #2a2a5a;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.sub-menu li a:hover,
.sub-menu li a:focus {
    background: #f4f7ff;
    color: #1a4b8c;
    padding-left: 24px;
}

.has-submenu:hover > .sub-menu,
.has-submenu:focus-within > .sub-menu {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.has-submenu > a .fa-chevron-down {
    margin-left: 6px;
    font-size: 0.75em;
    transition: transform 0.25s ease;
}

.has-submenu:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* Interactive hover feel */
.btn, .nav-menu a, .course-card, .faculty-card, .gallery-item, .news-card, .download-item, .feature-card, .stat-item, .facility-card {
    transition: all 0.3s ease;
}

.btn:hover, .nav-menu a:hover {
    transform: translateY(-2px);
}

.course-card:hover, .faculty-card:hover, .gallery-item:hover, .news-card:hover, .download-item:hover, .feature-card:hover, .stat-item:hover, .facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f8f9fa;
    }

    .sub-menu a {
        border-bottom: none;
        padding-left: 30px;
    }

    .has-submenu.active > .sub-menu,
    .has-submenu.open > .sub-menu {
        display: block;
    }
}

@media (max-width: 1200px) {
    .main-header {
        position: relative;
        top: auto;
        z-index: auto;
    }
    
    .main-nav {
        top: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background: var(--primary-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f8f9fa;
    }
    
    .sub-menu a {
        border-bottom: none;
        padding-left: 30px;
    }
    
    .has-submenu.active > .sub-menu,
    .has-submenu.open > .sub-menu {
        display: block;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .logo img,
    .logo-right img {
        max-height: 100px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .top-bar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* Desktop: horizontal submenus */
@media (min-width: 1201px) {
    .nav-menu > li {
        position: static;
    }

    .nav-menu > li > .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
        overflow: visible;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
        border-top: 3px solid var(--secondary-color);
        border-radius: 0 0 8px 8px;
        padding: 10px 0;
        z-index: 1000;
        list-style: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu > li.has-submenu:hover > .sub-menu,
    .nav-menu > li.has-submenu:focus-within > .sub-menu {
        display: flex;
        animation: fadeIn 0.25s ease;
    }

    .nav-menu > li > .sub-menu li {
        position: relative;
        display: block;
        width: auto;
    }

    .nav-menu > li > .sub-menu li a {
        display: block;
        padding: 10px 20px;
        color: var(--primary-color);
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        white-space: nowrap;
        transition: all 0.25s ease;
    }

    .nav-menu > li > .sub-menu li:last-child a {
        border-right: none;
    }

    .nav-menu > li > .sub-menu li a:hover,
    .nav-menu > li > .sub-menu li a:focus {
        background: linear-gradient(90deg, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0.02) 100%);
        color: var(--primary-light);
        transform: translateY(-2px);
    }

    /* Nested submenu */
    .nav-menu > li > .sub-menu .sub-menu {
        top: 100%;
        left: 0;
        width: max-content;
        min-width: 220px;
        max-width: 80vw;
        overflow-x: auto;
        overflow-y: hidden;
        background: #ffffff;
        border-radius: 0 8px 8px 8px;
        border-left: 3px solid var(--secondary-color);
        border-top: none;
        padding: 10px 0;
        flex-direction: column;
        justify-content: flex-start;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .nav-menu > li > .sub-menu .has-submenu:hover > .sub-menu,
    .nav-menu > li > .sub-menu .has-submenu:focus-within > .sub-menu {
        display: flex;
        animation: fadeIn 0.25s ease;
    }

    .nav-menu > li > .sub-menu .sub-menu li a {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li > .sub-menu .sub-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu > li > .sub-menu .sub-menu li a:hover,
    .nav-menu > li > .sub-menu .sub-menu li a:focus {
        background: #f4f7ff;
        color: #1a4b8c;
        padding-left: 24px;
    }
}

/* ============================================
   Full-width hero, responsive heights &
   colourful interactive navigation
   ============================================ */

/* Full-width hero */
.hero-section .container {
    max-width: 100%;
    padding: 0;
}

.hero-section .hero-carousel {
    border-radius: 0;
}

.hero-section .hero-slide img {
    border-radius: 0;
}

.hero-carousel .hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Colourful interactive main menu */
.nav-menu a {
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-bottom-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

/* Colourful dropdown hover */
.nav-menu > li > .sub-menu li a:hover,
.nav-menu > li > .sub-menu li a:focus,
.sub-menu li a:hover,
.sub-menu li a:focus {
    background: var(--secondary-color);
    color: #fff;
    padding-left: 24px;
    transform: translateX(5px);
}

/* Hero responsive heights */
@media (max-width: 1200px) { .hero-carousel .hero-slide img { height: 420px; } }
@media (max-width: 992px)  { .hero-carousel .hero-slide img { height: 360px; } }
@media (max-width: 768px)  { .hero-carousel .hero-slide img { height: 300px; } .hero-nav { width: 36px; height: 36px; font-size: 14px; } }
@media (max-width: 576px)  { .hero-carousel .hero-slide img { height: 240px; } .hero-dots { bottom: 10px; } }
@media (max-width: 480px)  { .hero-carousel .hero-slide img { height: 200px; } }

/* Content Pages (Recruitment, Tenders, RTI, etc.) */
.content-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.content-box {
    background: var(--text-white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.content-box h2,
.content-box .section-heading {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 18px;
    font-weight: 700;
}

.content-box h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 25px 0 12px;
    font-weight: 600;
}

.content-box h4 {
    color: var(--text-dark);
    font-size: 17px;
    margin: 20px 0 10px;
    font-weight: 600;
}

.content-box p,
.content-box li {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.content-box ul,
.content-box ol {
    padding-left: 20px;
    margin-bottom: 18px;
}

.content-box li {
    margin-bottom: 8px;
}

.content-box strong {
    color: var(--primary-dark);
}

.info-card {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 20px 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-card h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 18px;
}

.info-card p {
    margin-bottom: 8px;
    font-size: 14px;
}

.lead {
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

/* Downloads List - Cards */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.download-card {
    background: var(--text-white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.download-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.download-info strong {
    color: var(--text-dark);
}

.download-action {
    align-self: center;
    flex-shrink: 0;
}

.lang-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 18px 0;
}

.lang-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.lang-label.en {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-dark);
}

.lang-label.hi {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

@media (max-width: 768px) {
    .content-box {
        padding: 25px;
    }
    .download-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-action {
        align-self: flex-start;
    }
}

/* Image Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    position: relative;
    background: var(--text-white);
    padding: 15px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.modal-box img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    display: block;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 38px;
    height: 38px;
    background: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--text-white);
}

/* Responsive catch-all for all screen sizes */
html, body {
    width: 100%;
}

.container {
    width: 100%;
    min-width: 0;
}

img, video, iframe, object, canvas, svg, picture, figure {
    max-width: 100%;
    height: auto;
}

[class*="-grid"] > *,
[class*="-content"] > *,
.form-row > *,
.header-content > * {
    min-width: 0;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
