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

:root {
    /* Renaissance Brand Color Palette */
    /* Primary Colours */
    --royal-maroon: #8C1D2D;           /* Primary - Heritage & Authority */
    --deep-wine-red: #6F1623;          /* Hover states, sub-headers */
    --antique-gold: #C9A24D;           /* Excellence & Prestige */
    
    /* Metallic Gold Gradient */
    --gold-gradient-start: #D4AF37;
    --gold-gradient-mid: #B8963D;
    --gold-gradient-end: #E6C97A;
    
    /* Background Colours */
    --soft-ivory: #F7F3EB;             /* Soft Ivory / Off-White */
    --bg-white: #ffffff;                /* Pure white for contrast */
    --bg-light: #F7F3EB;               /* Soft Ivory */
    --bg-lighter: #FDFBF7;              /* Lighter ivory */
    
    /* Text Colours */
    --charcoal-black: #1F1F1F;          /* Body text, readability */
    --text-dark: #1F1F1F;               /* Primary text */
    --text-light: #5A5A5A;              /* Secondary text */
    --text-lighter: #8A8A8A;           /* Tertiary text */
    
    /* Border & Accent */
    --border-color: #E8E0D4;            /* Soft border matching ivory */
    --accent-color: #6F1623;           /* Deep wine for accents */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(140, 29, 45, 0.1);
    --shadow: 0 4px 6px -1px rgba(140, 29, 45, 0.15), 0 2px 4px -1px rgba(140, 29, 45, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(140, 29, 45, 0.15), 0 4px 6px -2px rgba(140, 29, 45, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(140, 29, 45, 0.15), 0 10px 10px -5px rgba(140, 29, 45, 0.1);
    
    /* Legacy variable mappings for compatibility */
    --primary-color: var(--royal-maroon);
    --primary-dark: var(--deep-wine-red);
    --primary-light: #A02A3F;
    --secondary-color: var(--antique-gold);
    --secondary-dark: #B8963D;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: var(--soft-ivory);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(247, 243, 235, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
}

#logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--royal-maroon);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--charcoal-black);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--royal-maroon);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--antique-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--royal-maroon) 0%, var(--deep-wine-red) 100%);
    margin-top: 70px;
    padding: 80px 0;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(140, 29, 45, 0.85) 0%, rgba(111, 22, 35, 0.9) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-gradient-start) 0%, var(--gold-gradient-mid) 50%, var(--gold-gradient-end) 100%);
    color: var(--charcoal-black);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--antique-gold) 0%, var(--gold-gradient-mid) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--deep-wine-red);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--royal-maroon);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--soft-ivory);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--antique-gold);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    min-height: 400px;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--royal-maroon);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-icon {
    width: 36px;
    height: 36px;
    background: var(--royal-maroon);
    color: var(--antique-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.highlight-text strong {
    display: block;
    color: var(--royal-maroon);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.highlight-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--royal-maroon) 0%, var(--deep-wine-red) 100%);
    color: var(--soft-ivory);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--antique-gold);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Programs Section */
.programs {
    background: var(--bg-white);
}

.program-category {
    margin-bottom: 5rem;
}

.program-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    color: var(--royal-maroon);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.category-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--soft-ivory);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--antique-gold);
    background: var(--bg-white);
}

.program-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-card h4,
.program-card .program-details,
.program-card .program-description {
    padding: 0 2rem;
}

.program-card h4 {
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.program-card .program-details {
    margin-top: 0;
}

.program-card .program-description {
    padding-bottom: 2rem;
    flex-grow: 1;
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Remove program-icon if using images */
.program-card .program-icon {
    display: none;
}

.program-card h4 {
    font-size: 1.4rem;
    color: var(--royal-maroon);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.program-details {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--antique-gold);
}

.program-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.program-details p:last-child {
    margin-bottom: 0;
}

.program-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

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

.polytechnic-card {
    border-top: 4px solid var(--antique-gold);
}

/* Infrastructure Section */
.infrastructure {
    background: var(--soft-ivory);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.facility-card {
    background: var(--soft-ivory);
    padding: 0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    border-color: var(--antique-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.facility-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-card h4,
.facility-card p {
    padding: 0 2rem;
}

.facility-card h4 {
    padding-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.facility-card p {
    padding-bottom: 2.5rem;
}

.facility-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Hide facility-icon when using images */
.facility-card .facility-icon {
    display: none;
}

.facility-card h4 {
    font-size: 1.3rem;
    color: var(--royal-maroon);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.facility-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-white);
}

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

.testimonial-card {
    background: var(--soft-ivory);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--antique-gold);
    background: var(--bg-white);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--antique-gold);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--royal-maroon);
    color: var(--antique-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid var(--antique-gold);
    overflow: hidden;
}

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

.author-info h5 {
    color: var(--royal-maroon);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--soft-ivory);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    color: var(--royal-maroon);
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-ivory);
    border-radius: 10px;
    border: 2px solid var(--antique-gold);
}

.contact-details h4 {
    color: var(--royal-maroon);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.contact-details a {
    color: var(--royal-maroon);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--deep-wine-red);
    text-decoration: underline;
}

.contact-map {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.map-placeholder {
    padding: 3rem;
    text-align: center;
    background: var(--bg-lighter);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.map-placeholder p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.map-address {
    font-weight: 500;
    color: var(--text-dark);
    margin: 1rem 0;
    font-size: 1.05rem;
}

.map-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-lighter);
}

/* Footer */
.footer {
    background: var(--deep-wine-red);
    color: var(--soft-ivory);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--antique-gold);
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(20deg);
    opacity: 0.95;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--antique-gold);
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--soft-ivory);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--antique-gold);
    text-decoration: underline;
}

.footer-section a {
    color: var(--soft-ivory);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--antique-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(201, 162, 77, 0.3);
    opacity: 0.9;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
        padding: 0.5rem 0;
    }

    .hero {
        min-height: 80vh;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        min-height: 300px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .polytechnic-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        max-width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    #logo-img {
        height: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove hero logo styles since we removed it from HTML */
.hero-logo {
    display: none;
}
