/* NUTECH Website Styles - Hostinger Compatible */

:root {
    --nutech-red: #800000;
    --nutech-red-dark: #600000;
    --nutech-gold: #D4AF37;
    --nutech-gold-dark: #B8960C;
    --nutech-dark: #1a1a1a;
    --nutech-gray: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Top Bar */
.top-bar {
    background: var(--nutech-red);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    transition: color 0.3s;
}

.top-link:hover {
    color: var(--nutech-gold);
}

.badge-new {
    background: var(--nutech-gold);
    color: var(--nutech-dark);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--nutech-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--nutech-red);
    line-height: 1;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nutech-red);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--nutech-red);
    color: var(--white);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.nuet-badge {
    background: var(--nutech-red);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.mobile-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a:hover {
    background: var(--nutech-gray);
    color: var(--nutech-red);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: url('https://nutech.edu.pk/wp-content/uploads/2021/10/p-1024x588.png') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(128, 0, 0, 0.9), rgba(128, 0, 0, 0.7), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-subtitle {
    color: var(--nutech-gold);
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 72px;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-motto {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--nutech-gold);
    color: var(--nutech-dark);
}

.btn-primary:hover {
    background: var(--nutech-gold-dark);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--nutech-red);
}

.btn-gold {
    background: var(--nutech-gold);
    color: var(--nutech-dark);
}

.btn-gold:hover {
    background: var(--nutech-gold-dark);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--nutech-red);
}

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

.bg-light {
    background: var(--nutech-gray);
}

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

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 36px;
    color: var(--nutech-red);
    margin-bottom: 15px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--nutech-gold);
    margin: 0 auto;
}

.section-header-row .section-line {
    margin: 0;
}

.see-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nutech-red);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.see-all:hover {
    color: var(--nutech-gold);
}

.mobile-see-all {
    display: none;
    text-align: center;
    margin-top: 30px;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.program-icon {
    width: 64px;
    height: 64px;
    background: var(--nutech-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 25px;
    transition: all 0.3s;
}

.program-card:hover .program-icon {
    background: var(--nutech-gold);
}

.program-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nutech-red);
    font-weight: 600;
    transition: color 0.3s;
}

.program-link:hover {
    color: var(--nutech-gold);
}

/* Schools Section */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.school-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.school-card:hover {
    border-color: var(--nutech-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.school-icon {
    width: 80px;
    height: 80px;
    background: var(--nutech-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--nutech-red);
    transition: all 0.3s;
}

.school-card:hover .school-icon {
    background: var(--nutech-red);
    color: var(--white);
}

.school-code {
    font-size: 28px;
    color: var(--nutech-red);
    margin-bottom: 10px;
}

.school-name {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Rector Section */
.rector {
    background: var(--nutech-red);
    color: var(--white);
}

.rector-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.rector-title {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
}

.rector .section-line {
    background: var(--nutech-gold);
    margin-bottom: 30px;
}

.rector-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.highlight {
    color: var(--nutech-gold);
    font-weight: 600;
}

.rector-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.rector-note {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
}

.rector-image-wrapper {
    position: relative;
}

.rector-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.rector-image img {
    width: 100%;
    height: auto;
    display: block;
}

.rector-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--nutech-gold);
    color: var(--nutech-dark);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rector-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.rector-position {
    font-size: 13px;
}

/* News & Events */
.news-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.news-card,
.event-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-card:hover,
.event-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-date,
.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
}

.news-card h3,
.event-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.news-link,
.event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nutech-red);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.news-link:hover,
.event-link:hover {
    color: var(--nutech-gold);
}

/* Quick Links Bar */
.quick-links-bar {
    background: var(--nutech-red);
    padding: 20px 0;
}

.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.quick-links a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--nutech-gold);
}

/* Footer */
.footer {
    background: var(--nutech-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-title {
    color: var(--nutech-gold);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--nutech-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--nutech-gold);
    color: var(--nutech-dark);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
}

.contact-info svg {
    color: var(--nutech-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-tagline {
    color: var(--nutech-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-copyright,
.footer-credit {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-credit span {
    color: var(--nutech-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .nuet-badge {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .rector-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rector-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-left {
        gap: 10px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-motto {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .programs-grid,
    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rector-badge {
        position: static;
        margin-top: 20px;
    }
    
    .section-header-row .see-all {
        display: none;
    }
    
    .mobile-see-all {
        display: block;
    }
    
    .quick-links {
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card,
    .news-card,
    .event-card {
        padding: 25px 20px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--nutech-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nutech-red-dark);
}
