/* ==========================================
   ISM EduTech - University Page Styles
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e2a5a;
    --secondary-color: #f97316;
    --accent-color: #0ea5e9;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    color: var(--text-white);
    font-size: 18px;
    padding: 16px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ea580c, var(--secondary-color));
}

/* Section Title */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ==========================================
   Header Styles
   ========================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo-sub {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?w=1920&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 42, 90, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ==========================================
   About University Section
   ========================================== */
.about-university {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   History Section
   ========================================== */
.history-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-content p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==========================================
   Modules Section
   ========================================== */
.modules-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.module-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.module-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.module-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   Curriculum Table Section
   ========================================== */
.curriculum-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.curriculum-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.curriculum-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 14px;
}

.curriculum-table tr:hover {
    background-color: var(--bg-light);
}

.curriculum-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   Inquiry Form Section
   ========================================== */
.inquiry-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fb923c 100%);
}

.inquiry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.inquiry-content h2 {
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.inquiry-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.inquiry-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* ==========================================
   Rector's Message Section
   ========================================== */
.rector-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.rector-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    margin-top: 50px;
}

.rector-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.rector-info {
    margin-top: 20px;
    text-align: center;
}

.rector-info h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.rector-info p {
    font-size: 14px;
    color: var(--text-light);
}

.rector-info span {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 500;
}

.rector-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.rector-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================
   Why Choose Section
   ========================================== */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   Accreditations Section
   ========================================== */
.accreditations-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.accreditation-item {
    text-align: center;
}

.accreditation-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-md);
}

.accreditation-item span {
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================
   Staff Section
   ========================================== */
.staff-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.staff-card {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.staff-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.staff-card h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.staff-card span {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--primary-color);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.office-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.office-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.office-card h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.office-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.office-card .phone {
    color: var(--text-dark);
    font-weight: 500;
}

.office-card .email {
    color: var(--primary-color);
    word-break: break-word;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f172a 100%);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: var(--text-white);
}

.footer-logo .logo-sub {
    color: var(--secondary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1200px) {
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .accreditations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inquiry-wrapper {
        grid-template-columns: 1fr;
    }
    
    .rector-grid {
        grid-template-columns: 1fr;
    }
    
    .rector-image {
        text-align: center;
    }
    
    .rector-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 15px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .accreditations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 250px;
    }
}