/* 
   =================================================
   AOVITAO INC. - 2018 Style (Flat 2.0 / Modern)
   =================================================
*/

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

:root {
    --primary-color: #007BFF;
    --primary-hover: #0056b3;
    --secondary-color: #f8f9fa;
    --text-main: #333333;
    --text-muted: #6c757d;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 16px rgba(0,123,255,0.15);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

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

a:hover {
    color: var(--primary-hover);
}

p {
    margin-bottom: 1rem;
}

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

/* 2. Layout & Grid */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4, .col-md-6, .col-lg-6 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-6 { width: 50%; }
}

.align-items-center { align-items: center; }

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.bg-light { background-color: var(--bg-light) !important; }
.bg-primary { 
    background-image: url('../img/diagonal_shape_with_slide_halftone_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Randomly selected default, overridden by JS for true randomness */
}
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6, .text-white p, .text-white i { color: #ffffff !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.25rem; font-weight: 300; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* Background Image Sections (New Addition) */
.bg-image-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax feel */
    color: #fff;
}

.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 40, 85, 0.85); /* Deep Blue Overlay */
    z-index: 1;
}

.bg-image-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure text is white on dark backgrounds */
.bg-image-section h2, 
.bg-image-section h3, 
.bg-image-section h4, 
.bg-image-section p, 
.bg-image-section li, 
.bg-image-section span,
.bg-image-section i,
.bg-image-section .section-header p {
    color: #fff !important;
}

.bg-image-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Reset card styles inside background sections */
.bg-image-section .card {
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white cards */
    color: #333; /* Reset text color inside cards */
}

.bg-image-section .card h3,
.bg-image-section .card h4,
.bg-image-section .card p,
.bg-image-section .card span,
.bg-image-section .card i,
.bg-image-section .card li {
    color: #333 !important; /* Reset text color inside cards */
}

.bg-image-section .card .text-primary,
.bg-image-section .card .card-icon {
    color: var(--primary-color) !important;
}

.bg-image-section .card .text-muted {
    color: #6c757d !important;
}

/* 3. Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.btn-light {
    color: var(--primary-color);
    background-color: #fff;
}

.btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
    border-radius: var(--radius-lg);
}

/* 4. Header & Navigation (Classic Corporate Style) */
.header {
    background: #f8f8f8; /* Fallback */
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
    border-bottom: 3px solid #003366; /* Corporate Blue Border */
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: Verdana, Geneva, sans-serif;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 70px;
    width: auto;
}

/* Removed .logo i style as icon is replaced by image */

.nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.nav-item:first-child {
    border-left: 1px solid #e0e0e0;
}

.nav-item:hover, .nav-item.active {
    background-color: #e6e6e6;
    color: #003366;
    text-decoration: none;
}

/* Dropdown Styles (Classic) */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    cursor: pointer;
    border-right: 1px solid #e0e0e0;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.nav-dropdown:hover .dropdown-toggle {
    background-color: #e6e6e6;
    color: #003366;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    border: 1px solid #999;
    border-top: none;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-family: Verdana, sans-serif;
}

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

.dropdown-item:hover {
    background-color: #003366;
    color: #fff !important;
}

.dropdown-item i {
    width: 16px;
    margin-right: 5px;
    color: #666;
}

.dropdown-item:hover i {
    color: #fff;
}

/* Button override for header */
.nav .btn {
    margin-left: 15px;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 2px;
    background: linear-gradient(to bottom, #004488 0%, #003366 100%);
    border: 1px solid #002244;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.nav .btn:hover {
    background: linear-gradient(to bottom, #0055aa 0%, #004488 100%);
    transform: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* 5. Hero Section */
.hero {
    position: relative;
    background-color: #003366; /* Fallback color */
    padding: 120px 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.7); /* Dark blue overlay for better text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 6. Cards & Grids */
.grid {
    display: grid;
    gap: 30px;
}

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

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

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.feature-card {
    padding: 40px 30px;
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
}

.uni-card {
    display: flex;
    flex-direction: column;
}

.uni-header {
    padding: 20px;
    position: relative;
}

.uni-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffc107;
    color: #212529;
    padding: 6px 14px;
    border-radius: 0 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

/* 7. Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

.table-card {
    padding: 30px;
}

.list-group {
    list-style: none;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.list-group-item:last-child {
    border-bottom: none;
}

.info-card {
    border: none;
}

.divider-light {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 20px 0;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: #28a745;
    background: #fff;
    border-radius: 50%;
}

/* 9. FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    outline: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-white);
}

.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-muted);
}

/* 10. Footer */
.footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 80px 0 20px;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

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

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

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #adb5bd;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 10. Responsive Adjustments */
@media (max-width: 991px) {
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
    }
    
    .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav .btn {
        margin-top: 15px;
        width: 100%;
    }
    
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.2rem; }
    
    .mt-mobile { margin-top: 40px; }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section { padding: 50px 0; }
}
