/* Global Styles */
:root {
    --primary-color: #008080; /* Deep Teal */
    --secondary-color: #D4AF37; /* Gold/Ochre */
    --accent-color: #C0C0C0; /* Silver */
    --dark-color: #2C3E50; /* Charcoal */
    --text-color: #34495E;
    --text-light: #6c757d;
    --light-color: #f7f9f9;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Add padding to the main content to avoid being hidden by the fixed header and news ticker */
main {
    padding-top: 85px; /* Adjust based on your header and ticker heights */
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto;
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 1rem;
    padding: 15px 35px;
}

.btn-cta:hover {
    background-color: #c5a030;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    font-family: 'Playfair Display', serif;
}

.logo img {
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* News Ticker */
.news-ticker-container {
    display: flex;
    align-items: center;
    background-color: var(--dark-color);
    color: var(--white);
    position: fixed;
    top: 80px; /* Adjust based on header height */
    width: 100%;
    z-index: 999;
    overflow: hidden;
}

.news-ticker-label {
    background-color: var(--secondary-color);
    padding: 12px 22px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.news-ticker {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker ul {
    display: flex;
    list-style: none;
    padding-left: 100%; /* Start off-screen */
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    margin: 0;
}

.news-ticker li {
    padding: 0 30px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.news-ticker:hover ul {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Adjust main section padding to account for fixed header + news ticker */
main {
    padding-top: 130px; /* Header Height + Ticker Height */
}

/* Hero Section */
.hero-section {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5)), url(https://images.unsplash.com/photo-1588075592446-265fd1e6e76f?auto=format&fit=crop&q=80&w=2072) no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    width: 100%;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    color: var(--white);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Welcome Section */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.welcome-image img {
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.welcome-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--dark-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Academics Section */
.academics-section {
    background: var(--light-color);
}
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.academic-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}
.academic-card:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--white);
}
.academic-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}
.academic-card:hover .card-icon,
.academic-card:hover h3,
.academic-card:hover p {
    color: var(--white);
}
.academic-card h3 {
    transition: var(--transition);
}
.academic-card p {
    transition: var(--transition);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section h2::after {
    background-color: var(--secondary-color);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-social {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}
.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    transition: var(--transition);
}
.contact-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}


.footer-column p, .footer-column a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: block;
}

.footer-column a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-logo {
    margin-top: 20px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    margin-top: 30px;
    text-align: center;
}

.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright, .technical-partner, .login-links {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.login-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.login-links a:hover {
    color: var(--secondary-color);
}


/* Responsive Styles */
@media (max-width: 992px) {
    .welcome-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    .welcome-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px; /* Header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }

    .news-ticker-container {
        top: 80px; /* Adjust for mobile header height */
    }

    main {
        padding-top: 130px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}