/* Base Styles */
:root {
    --primary-color: #3a5998;
    --secondary-color: #4CAF50;
    --accent-color: #FFC107;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.responsive-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(58, 89, 152, 0.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    background-color: rgba(58, 89, 152, 0.1);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #2d4373;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #3d8b40;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(58, 89, 152, 0.9), rgba(58, 89, 152, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about {
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

/* Test Sections */
.test-sections {
    background-color: var(--light-color);
}

.test-sections h2 {
    text-align: center;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.section-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-card h3 {
    margin-bottom: 15px;
}

.section-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Strategies Section */
.strategies {
    background-color: #fff;
}

.strategies h2 {
    text-align: center;
    margin-bottom: 40px;
}

.strategies-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.strategies-text {
    flex: 1;
}

.strategies-image {
    flex: 1;
}

.strategies-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.strategies-text li {
    margin-bottom: 10px;
}

.strategies-text .btn {
    margin-top: 10px;
}

/* Study Schedule Section */
.study-schedule {
    background-color: var(--light-color);
}

.study-schedule h2 {
    text-align: center;
    margin-bottom: 40px;
}

.schedule-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.schedule-text {
    flex: 1;
}

.schedule-image {
    flex: 1;
}

.schedule-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.schedule-text li {
    margin-bottom: 10px;
}

.schedule-text .btn {
    margin-top: 10px;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(76, 175, 80, 0.9), rgba(76, 175, 80, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4,
.footer-sections h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-sections ul {
    opacity: 0.8;
}

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

.footer-links a,
.footer-sections a {
    color: var(--light-text);
    transition: var(--transition);
}

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

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

.footer-bottom p {
    opacity: 0.7;
}

/* Subject Page Styles */
.subject-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px 0;
    text-align: center;
}

.subject-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.subject-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.subject-nav {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.subject-nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
}

.subject-nav li {
    margin: 0;
}

.subject-nav a {
    display: block;
    padding: 15px 25px;
    color: var(--dark-color);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.subject-nav a:hover,
.subject-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.content-section {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.content-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

.content-section code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.content-section pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 20px;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.content-section th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.content-section tr:hover {
    background-color: #f9f9f9;
}

/* Practice Test Styles */
.question {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.question h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.options {
    margin-bottom: 20px;
}

.option {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    background-color: #f9f9f9;
}

.option.selected {
    background-color: rgba(58, 89, 152, 0.1);
    border-color: var(--primary-color);
}

.option.correct {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
}

.option.incorrect {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
}

.explanation {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 20px;
    display: none;
}

.explanation.show {
    display: block;
}

.test-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.results {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    display: none;
}

.results.show {
    display: block;
}

.score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.score-details {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .strategies-content,
    .schedule-content {
        flex-direction: column;
    }
    
    .about-image,
    .strategies-image,
    .schedule-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .section-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        width: 100%;
    }
    
    .test-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .test-controls .btn {
        margin-bottom: 10px;
    }
}

