/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

/* Hero content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

/* Hero content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/* Social Media Links */
.footer-social {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

.social-link.instagram:hover {
    background-color: #e4405f;
    color: #fff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.social-link.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #222;
    padding: 1.5rem 0;
    text-align: center;
}

.site-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles for Footer */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-widget:nth-child(1),
    .footer-widget:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widget {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-brand-img {
        max-height: 50px;
    }
    
    .footer-widget-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .newsletter-submit {
        padding: 0 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title-courses {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title-courses {
        font-size: 1.6rem;
    }
    
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title-courses {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .course-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.7rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-widget-area h2 {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* About Us Section */
.about-us-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

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

.about-us-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-us-content .section-title.text-left {
    text-align: left;
}

.about-us-content .section-title.text-left::after {
    left: 0;
    transform: none;
}

.about-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
}

.about-feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.about-feature-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-us-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.student-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive styles for different devices */
@media (max-width: 992px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 2rem;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        align-items: center;
    }
    
    .responsive-img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-us-section {
        padding: 3rem 0;
    }
    
    .about-us-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .responsive-img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .about-feature-item {
        align-items: center;
        text-align: center;
    }
    
    .about-us-content .section-title.text-left {
        text-align: center;
    }
    
    .about-us-content .section-title.text-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-us-image {
        margin-bottom: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .responsive-img {
        max-height: 300px;
        object-position: center top;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.course-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f5f9fc 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.section-title-testimonials {
    margin-bottom: 3rem;
    color: #333;
}

.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    position: relative;
    z-index: 1;
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 3rem;
    color: rgba(0, 115, 170, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive testimonials */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        margin: 0 1rem;
    }
    
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-rating {
        font-size: 1rem;
    }
    
    .testimonial-author-info h4 {
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.8rem !important;
    }
    
    .testimonial-author-info p {
        font-size: 0.8rem;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .profile-icon i {
        font-size: 1.8rem;
    }
}

/* JavaScript for testimonials - will be added with this CSS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-card.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Body styles when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Additional mobile menu styles */
@media (max-width: 992px) {
    .main-navigation .menu-toggle {
        position: relative;
        z-index: 1002;
    }
    
    .main-navigation.toggled .menu-toggle {
        position: fixed;
        top: 15px;
        right: 15px;
    }
    
    .main-navigation.toggled .menu-toggle-bar {
        background-color: var(--text-color);
    }
    
    /* Overlay when menu is open */
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease forwards;
    }
    
    /* Ensure dropdown arrows are visible */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 40px;
    }
    
    /* Dropdown indicator styles */
    .dropdown-toggle-indicator {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .dropdown-toggle-indicator::before {
        content: '+';
        font-size: 18px;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        content: '-';
    }
    
    /* Use max-height for sub-menu transitions */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        will-change: max-height;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px; /* Large value to accommodate any size submenu */
    }
    
    /* Ensure submenus are visible on touch devices */
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
}

/* Single Post Template Styles */
.single-post-wrapper {
    padding: 60px 0;
}

.single-post-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.single-post-thumbnail {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-post-header {
    padding: 30px 30px 20px;
}

.single-post-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.95rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta img {
    border-radius: 50%;
}

.post-date, .post-categories {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i, .post-categories i {
    color: var(--primary-color);
}

.post-categories a {
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Single Post Content Styles */
.single-post-content-body {
    padding: 0 30px 30px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-post-content-body p {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Fix mobile styles */
@media (max-width: 768px) {
    .single-post-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .author-meta {
        justify-content: center;
        width: 100%;
    }
    
    .post-date, .post-categories {
        justify-content: center;
        width: 100%;
    }
    
    .single-post-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .single-post-wrapper {
        padding: 40px 0;
        width: 100%;
    }
    
    .single-post-content-body {
        padding: 0 15px 30px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .single-post-content-body img,
    .single-post-content-body figure {
        max-width: 100%;
        height: auto;
    }
    
    .single-post-header,
    .single-post-footer {
        padding: 20px 15px;
        text-align: center;
    }
    
    .single-post-footer {
        justify-content: center;
    }
    
    .post-tags {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-post-title {
        font-size: 1.8rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .single-post-content-body h1, 
    .single-post-content-body h2, 
    .single-post-content-body h3, 
    .single-post-content-body h4, 
    .single-post-content-body h5, 
    .single-post-content-body h6 {
        text-align: left;
        width: 100%;
        word-wrap: break-word;
    }
    
    .single-post-content-body p,
    .single-post-content-body ul,
    .single-post-content-body ol {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .single-post-content-body {
        font-size: 1rem;
    }
}

.single-post-content-body h1, 
.single-post-content-body h2, 
.single-post-content-body h3, 
.single-post-content-body h4, 
.single-post-content-body h5, 
.single-post-content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.single-post-content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content-body a:hover {
    color: var(--secondary-color);
}

.single-post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.single-post-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: rgba(0, 115, 170, 0.05);
}

.single-post-content-body ul, 
.single-post-content-body ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.single-post-content-body li {
    margin-bottom: 0.5rem;
}

.single-post-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--primary-color);
}

.post-tags a {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.share-facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-pinterest:hover {
    background-color: #bd081c;
    color: white;
}

.share-email:hover {
    background-color: #333;
    color: white;
}

/* Enhanced Author Box */
.author-box {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.author-image {
    flex: 0 0 auto;
}

.author-image img {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.author-bio p {
    margin-bottom: 10px;
}

.author-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 5px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
}

.author-links a:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.related-posts {
    margin: 50px 0;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.related-posts-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

/* Hero content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/* Social Media Links */
.footer-social {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

.social-link.instagram:hover {
    background-color: #e4405f;
    color: #fff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.social-link.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #222;
    padding: 1.5rem 0;
    text-align: center;
}

.site-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles for Footer */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-widget:nth-child(1),
    .footer-widget:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widget {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-brand-img {
        max-height: 50px;
    }
    
    .footer-widget-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .newsletter-submit {
        padding: 0 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title-courses {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title-courses {
        font-size: 1.6rem;
    }
    
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title-courses {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .course-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.7rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-widget-area h2 {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* About Us Section */
.about-us-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

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

.about-us-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-us-content .section-title.text-left {
    text-align: left;
}

.about-us-content .section-title.text-left::after {
    left: 0;
    transform: none;
}

.about-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

/* Hero content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

/* Hero content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/* Social Media Links */
.footer-social {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

.social-link.instagram:hover {
    background-color: #e4405f;
    color: #fff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.social-link.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #222;
    padding: 1.5rem 0;
    text-align: center;
}

.site-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles for Footer */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-widget:nth-child(1),
    .footer-widget:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widget {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-brand-img {
        max-height: 50px;
    }
    
    .footer-widget-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .newsletter-submit {
        padding: 0 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title-courses {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title-courses {
        font-size: 1.6rem;
    }
    
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title-courses {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .course-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.7rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-widget-area h2 {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* About Us Section */
.about-us-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

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

.about-us-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-us-content .section-title.text-left {
    text-align: left;
}

.about-us-content .section-title.text-left::after {
    left: 0;
    transform: none;
}

.about-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
}

.about-feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.about-feature-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-us-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.student-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive styles for different devices */
@media (max-width: 992px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 2rem;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        align-items: center;
    }
    
    .responsive-img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-us-section {
        padding: 3rem 0;
    }
    
    .about-us-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .responsive-img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .about-feature-item {
        align-items: center;
        text-align: center;
    }
    
    .about-us-content .section-title.text-left {
        text-align: center;
    }
    
    .about-us-content .section-title.text-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-us-image {
        margin-bottom: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .responsive-img {
        max-height: 300px;
        object-position: center top;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.course-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f5f9fc 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.section-title-testimonials {
    margin-bottom: 3rem;
    color: #333;
}

.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    position: relative;
    z-index: 1;
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 3rem;
    color: rgba(0, 115, 170, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive testimonials */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        margin: 0 1rem;
    }
    
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-rating {
        font-size: 1rem;
    }
    
    .testimonial-author-info h4 {
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.8rem !important;
    }
    
    .testimonial-author-info p {
        font-size: 0.8rem;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .profile-icon i {
        font-size: 1.8rem;
    }
}

/* JavaScript for testimonials - will be added with this CSS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-card.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Body styles when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Additional mobile menu styles */
@media (max-width: 992px) {
    .main-navigation .menu-toggle {
        position: relative;
        z-index: 1002;
    }
    
    .main-navigation.toggled .menu-toggle {
        position: fixed;
        top: 15px;
        right: 15px;
    }
    
    .main-navigation.toggled .menu-toggle-bar {
        background-color: var(--text-color);
    }
    
    /* Overlay when menu is open */
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease forwards;
    }
    
    /* Ensure dropdown arrows are visible */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 40px;
    }
    
    /* Dropdown indicator styles */
    .dropdown-toggle-indicator {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .dropdown-toggle-indicator::before {
        content: '+';
        font-size: 18px;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        content: '-';
    }
    
    /* Use max-height for sub-menu transitions */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        will-change: max-height;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px; /* Large value to accommodate any size submenu */
    }
    
    /* Ensure submenus are visible on touch devices */
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
}

/* Single Post Template Styles */
.single-post-wrapper {
    padding: 60px 0;
}

.single-post-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.single-post-thumbnail {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-post-header {
    padding: 30px 30px 20px;
}

.single-post-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.95rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta img {
    border-radius: 50%;
}

.post-date, .post-categories {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i, .post-categories i {
    color: var(--primary-color);
}

.post-categories a {
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Single Post Content Styles */
.single-post-content-body {
    padding: 0 30px 30px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-post-content-body p {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Fix mobile styles */
@media (max-width: 768px) {
    .single-post-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .author-meta {
        justify-content: center;
        width: 100%;
    }
    
    .post-date, .post-categories {
        justify-content: center;
        width: 100%;
    }
    
    .single-post-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .single-post-wrapper {
        padding: 40px 0;
        width: 100%;
    }
    
    .single-post-content-body {
        padding: 0 15px 30px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .single-post-content-body img,
    .single-post-content-body figure {
        max-width: 100%;
        height: auto;
    }
    
    .single-post-header,
    .single-post-footer {
        padding: 20px 15px;
        text-align: center;
    }
    
    .single-post-footer {
        justify-content: center;
    }
    
    .post-tags {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-post-title {
        font-size: 1.8rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .single-post-content-body h1, 
    .single-post-content-body h2, 
    .single-post-content-body h3, 
    .single-post-content-body h4, 
    .single-post-content-body h5, 
    .single-post-content-body h6 {
        text-align: left;
        width: 100%;
        word-wrap: break-word;
    }
    
    .single-post-content-body p,
    .single-post-content-body ul,
    .single-post-content-body ol {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .single-post-content-body {
        font-size: 1rem;
    }
}

.single-post-content-body h1, 
.single-post-content-body h2, 
.single-post-content-body h3, 
.single-post-content-body h4, 
.single-post-content-body h5, 
.single-post-content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.single-post-content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content-body a:hover {
    color: var(--secondary-color);
}

.single-post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.single-post-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: rgba(0, 115, 170, 0.05);
}

.single-post-content-body ul, 
.single-post-content-body ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.single-post-content-body li {
    margin-bottom: 0.5rem;
}

.single-post-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--primary-color);
}

.post-tags a {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.share-facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-pinterest:hover {
    background-color: #bd081c;
    color: white;
}

.share-email:hover {
    background-color: #333;
    color: white;
}

/* Enhanced Author Box */
.author-box {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.author-image {
    flex: 0 0 auto;
}

.author-image img {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.author-bio p {
    margin-bottom: 10px;
}

.author-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 5px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
}

.author-links a:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.related-posts {
    margin: 50px 0;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.related-posts-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.2);
    animation: float 6s ease-in-out infinite, morphShape 15s linear infinite alternate;
}

.shape2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 115, 170, 0.2);
    animation: float 8s ease-in-out infinite 1s, morphShape 20s linear infinite alternate;
}

.shape3 {
    bottom: 15%;
    left: 15%;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 193, 7, 0.2);
    animation: float 7s ease-in-out infinite 2s, morphShape 18s linear infinite alternate;
}

.shape4 {
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.2);
    animation: float 9s ease-in-out infinite 3s, morphShape 22s linear infinite alternate;
}

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
}

.circle1 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    animation: pulse 5s infinite;
}

.circle2 {
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--accent-color);
    animation: pulse 5s infinite 2.5s;
}

/* Hero content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/* Social Media Links */
.footer-social {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

.social-link.instagram:hover {
    background-color: #e4405f;
    color: #fff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.social-link.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #222;
    padding: 1.5rem 0;
    text-align: center;
}

.site-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles for Footer */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-widget:nth-child(1),
    .footer-widget:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widget {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-brand-img {
        max-height: 50px;
    }
    
    .footer-widget-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .newsletter-submit {
        padding: 0 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title-courses {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title-courses {
        font-size: 1.6rem;
    }
    
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title-courses {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .course-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.7rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-widget-area h2 {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* About Us Section */
.about-us-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

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

.about-us-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-us-content .section-title.text-left {
    text-align: left;
}

.about-us-content .section-title.text-left::after {
    left: 0;
    transform: none;
}

.about-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
}

.about-feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.about-feature-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-us-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.student-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive styles for different devices */
@media (max-width: 992px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 2rem;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        align-items: center;
    }
    
    .responsive-img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-us-section {
        padding: 3rem 0;
    }
    
    .about-us-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .responsive-img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .about-feature-item {
        align-items: center;
        text-align: center;
    }
    
    .about-us-content .section-title.text-left {
        text-align: center;
    }
    
    .about-us-content .section-title.text-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-us-image {
        margin-bottom: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .responsive-img {
        max-height: 300px;
        object-position: center top;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.course-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f5f9fc 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.section-title-testimonials {
    margin-bottom: 3rem;
    color: #333;
}

.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    position: relative;
    z-index: 1;
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 3rem;
    color: rgba(0, 115, 170, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive testimonials */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        margin: 0 1rem;
    }
    
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-rating {
        font-size: 1rem;
    }
    
    .testimonial-author-info h4 {
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.8rem !important;
    }
    
    .testimonial-author-info p {
        font-size: 0.8rem;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .profile-icon i {
        font-size: 1.8rem;
    }
}

/* JavaScript for testimonials - will be added with this CSS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-card.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Body styles when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Additional mobile menu styles */
@media (max-width: 992px) {
    .main-navigation .menu-toggle {
        position: relative;
        z-index: 1002;
    }
    
    .main-navigation.toggled .menu-toggle {
        position: fixed;
        top: 15px;
        right: 15px;
    }
    
    .main-navigation.toggled .menu-toggle-bar {
        background-color: var(--text-color);
    }
    
    /* Overlay when menu is open */
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease forwards;
    }
    
    /* Ensure dropdown arrows are visible */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 40px;
    }
    
    /* Dropdown indicator styles */
    .dropdown-toggle-indicator {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .dropdown-toggle-indicator::before {
        content: '+';
        font-size: 18px;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        content: '-';
    }
    
    /* Use max-height for sub-menu transitions */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        will-change: max-height;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px; /* Large value to accommodate any size submenu */
    }
    
    /* Ensure submenus are visible on touch devices */
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
}

/* Single Post Template Styles */
.single-post-wrapper {
    padding: 60px 0;
}

.single-post-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.single-post-thumbnail {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-post-header {
    padding: 30px 30px 20px;
}

.single-post-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.95rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta img {
    border-radius: 50%;
}

.post-date, .post-categories {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i, .post-categories i {
    color: var(--primary-color);
}

.post-categories a {
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Single Post Content Styles */
.single-post-content-body {
    padding: 0 30px 30px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-post-content-body p {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Fix mobile styles */
@media (max-width: 768px) {
    .single-post-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .author-meta {
        justify-content: center;
        width: 100%;
    }
    
    .post-date, .post-categories {
        justify-content: center;
        width: 100%;
    }
    
    .single-post-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .single-post-wrapper {
        padding: 40px 0;
        width: 100%;
    }
    
    .single-post-content-body {
        padding: 0 15px 30px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .single-post-content-body img,
    .single-post-content-body figure {
        max-width: 100%;
        height: auto;
    }
    
    .single-post-header,
    .single-post-footer {
        padding: 20px 15px;
        text-align: center;
    }
    
    .single-post-footer {
        justify-content: center;
    }
    
    .post-tags {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-post-title {
        font-size: 1.8rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .single-post-content-body h1, 
    .single-post-content-body h2, 
    .single-post-content-body h3, 
    .single-post-content-body h4, 
    .single-post-content-body h5, 
    .single-post-content-body h6 {
        text-align: left;
        width: 100%;
        word-wrap: break-word;
    }
    
    .single-post-content-body p,
    .single-post-content-body ul,
    .single-post-content-body ol {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .single-post-content-body {
        font-size: 1rem;
    }
}

.single-post-content-body h1, 
.single-post-content-body h2, 
.single-post-content-body h3, 
.single-post-content-body h4, 
.single-post-content-body h5, 
.single-post-content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.single-post-content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content-body a:hover {
    color: var(--secondary-color);
}

.single-post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.single-post-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: rgba(0, 115, 170, 0.05);
}

.single-post-content-body ul, 
.single-post-content-body ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.single-post-content-body li {
    margin-bottom: 0.5rem;
}

.single-post-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--primary-color);
}

.post-tags a {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.share-twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-pinterest:hover {
    background-color: #bd081c;
    color: white;
}

.share-email:hover {
    background-color: #333;
    color: white;
}

/* Enhanced Author Box */
.author-box {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.author-image {
    flex: 0 0 auto;
}

.author-image img {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.author-bio p {
    margin-bottom: 10px;
}

.author-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 5px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
}

.author-links a:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.related-posts {
    margin: 50px 0;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.related-posts-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

/*
Theme Name: EduSpark
Theme URI: https://example.com/eduspark
Author: Sanu Amhee
Author URI: https://iubeportal.com
Description: EduSpark is a modern and user-friendly education theme for schools, colleges, and online platforms. It includes built-in tools for learning management, course listing, and easy content updates. Perfect for creating a complete educational website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduspark
Tags: education, e-learning, school, college, university, online courses, LMS, learning tools, responsive, clean design, customizable, academic, teaching
*/

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

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #ff6b6b;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Mobile Desktop Mode Text Size Adjustment */
@media screen and (max-width: 1000px) and (min-resolution: 1dppx) {
    body {
        font-size: 14px;
    }
    
    p, li, td, th, input, button, select, textarea, label, .footer-description, .footer-contact-text, .footer-menu a {
        font-size: 14px !important;
    }
    
    h1, .h1 {
        font-size: 24px !important;
    }
    
    h2, .h2 {
        font-size: 20px !important;
    }
    
    h3, .h3 {
        font-size: 18px !important;
    }
    
    h4, .h4 {
        font-size: 16px !important;
    }
}

/* Ensure all headings use Inter font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, 
.course-title, .feature-card h3, 
.testimonial-author-info h4, 
.cta-content h2, .widget-title, 
.sidebar-widget-title, .page-title, 
.comments-title, .comment-reply-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    margin-left: 15px;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 5px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Sub-menu styling */
.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    list-style: none;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(0, 115, 170, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Responsive styles for the navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding: 70px 20px 30px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .main-navigation.toggled .nav-menu-wrapper {
        right: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .main-navigation.toggled .menu-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 0;
        color: #333;
        font-weight: 400;
        width: 100%;
        display: block;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        max-height: none;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        transform: none;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > a::after {
        transform: rotate(180deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }
    
    /* Navigation dropdown styling for mobile */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .dropdown-toggle-indicator::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        transform: rotate(-135deg);
    }
    
    /* Sub-menu styling for mobile */
    .nav-menu .sub-menu {
        border-radius: 0;
        padding-left: 20px;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children:focus > .sub-menu,
    .nav-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 0;
        max-height: 0;
    }
    
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        visibility: visible;
    }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .site-header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        padding: 15px;
        margin-right: -10px;
    }
    
    .menu-toggle-bar {
        width: 22px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .menu-toggle-bar {
        width: 22px;
        height: 2px;
    }
    
    .menu-toggle {
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.1) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: 0;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

.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);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Feature Cards - Animation and Border Effects */
.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, transparent, rgba(0, 115, 170, 0.1));
    transition: all 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
    animation: borderPulse 1.5s infinite;
}

.feature-card:hover::after {
    width: 100%;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 115, 170, 0.2);
}

.feature-card:hover .feature-icon::before {
    transform: scale(1.6);
    opacity: 0.6;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

.feature-card.animate-fade-in {
    animation: featureCardEnter 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes featureCardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature card visibility animations */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card::before {
        height: 2px;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f0f7fc 0%, #eaf5ff 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.section-title-courses {
    font-size: 2.5rem;
    color: #0a4b78;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-courses::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.section-title-courses::before {
    content: '★★★';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 115, 170, 0.3);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

.courses-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: #fff;
    animation: fadeIn 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 115, 170, 0.2);
}

.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover .course-price {
    background-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.course-rating i {
    color: #ffc107;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    width: 16px;
    height: 16px;
}

.star-full::before {
    content: '★';
}

.star-half::before {
    content: '★';
}

.star-half {
    position: relative;
    overflow: hidden;
}

.star-half::after {
    content: '☆';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.star-empty::before {
    content: '☆';
}

.rating-text {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

.course-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.course-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.course-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.course-excerpt p {
    margin: 0;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #777;
}

.meta-icon {
    display: inline-block;
    margin-right: 5px;
    font-style: normal;
    position: relative;
    top: 1px;
}

.instructor-icon::before {
    content: '👤';
}

.lessons-icon::before {
    content: '📚';
}

.course-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-more {
    text-align: center;
    margin-top: 3rem;
}

.admin-note {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-note p {
    margin: 0;
    color: #666;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .admin-note {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-note p {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        margin-left: 0;
    }
    
    .course-badge {
        padding: 4px 12px 4px 8px;
        font-size: 0.75rem;
    }
    
    .course-price {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-btn {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }
}

/* Responsive course grid */
@media (max-width: 992px) {
    .courses-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-courses {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title-courses {
        font-size: 2rem;
    }
    
    .course-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        height: 180px;
    }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
    background-color: #f9fafb;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f0f7fc 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.blog-posts-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.section-title-blog {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-blog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.blog-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-card:hover .blog-thumbnail-link::after {
    opacity: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.blog-category:hover {
    background: rgba(0, 115, 170, 0.2);
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 5px;
    color: #aaa;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.blog-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-all-posts {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-large:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Responsive styles for blog section */
@media (max-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title-blog {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .section-title-blog {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-section {
        padding: 3rem 0;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-btn {
        width: 100%;
        text-align: center;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 81, 119, 0.2) 100%);
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-main {
    background-color: #273044;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-widget {
    animation: fadeIn 0.8s ease-out;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(0, 115, 170, 0.5));
    border-radius: 3px;
}

/* Footer Logo */
.footer-brand {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-brand-img {
    max-height: 60px;
    width: auto;
}

.footer-brand-text {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .footer-menu a {
        padding-left: 1.5rem; /* Increase spacing for arrow on mobile */
    }
    
    .footer-menu a::before {
        left: 2px; /* Better position for the arrow on mobile */
    }
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-contact-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-contact-item {
        padding-right: 5px;
    }
    
    .footer-contact-icon {
        margin-right: 0.8rem;
    }
    
    .footer-contact-text {
        word-break: break-word;
    }
}

/* Newsletter Form */
.footer-newsletter-text {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.newsletter-form-group {
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background-color: var(--secondary-color);
}

/* Social Media Links */
.footer-social {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

.social-link.instagram:hover {
    background-color: #e4405f;
    color: #fff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.social-link.whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #222;
    padding: 1.5rem 0;
    text-align: center;
}

.site-info {
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles for Footer */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-widget:nth-child(1),
    .footer-widget:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widget {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-social {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-brand-img {
        max-height: 50px;
    }
    
    .footer-widget-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .newsletter-submit {
        padding: 0 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title-courses {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title-courses {
        font-size: 1.6rem;
    }
    
    .courses-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title-courses {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .course-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.7rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-widget-area h2 {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* About Us Section */
.about-us-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

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

.about-us-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-us-content .section-title.text-left {
    text-align: left;
}

.about-us-content .section-title.text-left::after {
    left: 0;
    transform: none;
}

.about-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.1);
    color: var(--primary-color);
}

.about-feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.about-feature-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-us-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.student-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive styles for different devices */
@media (max-width: 992px) {
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 2rem;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        align-items: center;
    }
    
    .responsive-img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-us-section {
        padding: 3rem 0;
    }
    
    .about-us-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .responsive-img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .about-feature-item {
        align-items: center;
        text-align: center;
    }
    
    .about-us-content .section-title.text-left {
        text-align: center;
    }
    
    .about-us-content .section-title.text-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-us-image {
        margin-bottom: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .responsive-img {
        max-height: 300px;
        object-position: center top;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.course-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: #f0f7fc;
    background-image: linear-gradient(135deg, #f5f9fc 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.section-title-testimonials {
    margin-bottom: 3rem;
    color: #333;
}

.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    position: relative;
    z-index: 1;
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 3rem;
    color: rgba(0, 115, 170, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 115, 170, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive testimonials */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        margin: 0 1rem;
    }
    
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-rating {
        font-size: 1rem;
    }
    
    .testimonial-author-info h4 {
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.8rem !important;
    }
    
    .testimonial-author-info p {
        font-size: 0.8rem;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .profile-icon i {
        font-size: 1.8rem;
    }
}

/* JavaScript for testimonials - will be added with this CSS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-card.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Body styles when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Additional mobile menu styles */
@media (max-width: 992px) {
    .main-navigation .menu-toggle {
        position: relative;
        z-index: 1002;
    }
    
    .main-navigation.toggled .menu-toggle {
        position: fixed;
        top: 15px;
        right: 15px;
    }
    
    .main-navigation.toggled .menu-toggle-bar {
        background-color: var(--text-color);
    }
    
    /* Overlay when menu is open */
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease forwards;
    }
    
    /* Ensure dropdown arrows are visible */
    .nav-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 40px;
    }
    
    /* Dropdown indicator styles */
    .dropdown-toggle-indicator {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .dropdown-toggle-indicator::before {
        content: '+';
        font-size: 18px;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .sub-menu-open > a .dropdown-toggle-indicator::before {
        content: '-';
    }
    
    /* Use max-height for sub-menu transitions */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        will-change: max-height;
    }
    
    .nav-menu .menu-item-has-children:hover > .sub-menu,
    .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px; /* Large value to accommodate any size submenu */
    }
    
    /* Ensure submenus are visible on touch devices */
    .touchevents .nav-menu .menu-item-has-children .sub-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
    }
    
    .touchevents .nav-menu .menu-item-has-children.sub-menu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
    }
}

/* Single Post Template Styles */
.single-post-wrapper {
    padding: 60px 0;
}

.single-post-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.single-post-thumbnail {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-post-header {
    padding: 30px 30px 20px;
}

.single-post-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.95rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta img {
    border-radius: 50%;
}

.post-date, .post-categories {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i, .post-categories i {
    color: var(--primary-color);
}

.post-categories a {
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Single Post Content Styles */
.single-post-content-body {
    padding: 0 30px 30px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-post-content-body p {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Fix mobile styles */
@media (max-width: 768px) {
    .single-post-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .author-meta {
        justify-content: center;
        width: 100%;
    }
    
    .post-date, .post-categories {
        justify-content: center;
        width: 100%;
    }
    
    .single-post-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .single-post-wrapper {
        padding: 40px 0;
        width: 100%;
    }
    
    .single-post-content-body {
        padding: 0 15px 30px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .single-post-content-body img,
    .single-post-content-body figure {
        max-width: 100%;
        height: auto;
    }
    
    .single-post-header,
    .single-post-footer {
        padding: 20px 15px;
        text-align: center;
    }
    
    .single-post-footer {
        justify-content: center;
    }
    
    .post-tags {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-post-title {
        font-size: 1.8rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .single-post-content-body h1, 
    .single-post-content-body h2, 
    .single-post-content-body h3, 
    .single-post-content-body h4, 
    .single-post-content-body h5, 
    .single-post-content-body h6 {
        text-align: left;
        width: 100%;
        word-wrap: break-word;
    }
    
    .single-post-content-body p,
    .single-post-content-body ul,
    .single-post-content-body ol {
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .single-post-content-body {
        font-size: 1rem;
    }
}

.single-post-content-body h1, 
.single-post-content-body h2, 
.single-post-content-body h3, 
.single-post-content-body h4, 
.single-post-content-body h5, 
.single-post-content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.single-post-content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content-body a:hover {
    color: var(--secondary-color);
}

.single-post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.single-post-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background-color: rgba(0, 115, 170, 0.05);
}

.single-post-content-body ul, 
.single-post-content-body ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.single-post-content-body li {
    margin-bottom: 0.5rem;
}

.single-post-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--primary-color);
}

.post-tags a {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.share-facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-pinterest:hover {
    background-color: #bd081c;
    color: white;
}

.share-email:hover {
    background-color: #333;
    color: white;
}

/* Enhanced Author Box */
.author-box {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.author-image {
    flex: 0 0 auto;
}

.author-image img {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.author-bio p {
    margin-bottom: 10px;
}

.author-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 5px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
}

.author-links a:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.related-posts {
    margin: 50px 0;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.related-posts-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post:hover .related-post-thumbnail::after {
    opacity: 1;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.related-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-post-date::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .related-posts {
        padding: 30px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-post-title {
        font-size: 2.4rem;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .related-posts {
        padding: 25px;
    }
    
    .related-posts-title {
        font-size: 1.5rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .single-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-wrapper {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .related-posts {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-post-thumbnail {
        height: 180px;
    }
    
    .single-post-header,
    .single-post-content-body,
    .single-post-footer {
        padding: 20px;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .post-tags {
        justify-content: flex-start;
    }
}

/* Comments styling */
.comments-area {
    margin-bottom: 50px;
}

.comments-title {
    font-size: 32px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.comments-title i {
    color: var(--primary-color);
}

.comments-disclaimer {
    font-size: 0.95rem;
    color: #666;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.comment-meta {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-avatar {
    margin-right: 15px;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.comment-metadata {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.comment-content {
    line-height: 1.6;
}

.reply {
    margin-top: 10px;
}

.reply a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f1f1f1;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
}

.reply a:hover {
    background-color: var(--primary-color);
    color: white;
}

.comment-respond {
    margin-top: 40px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-submit {
    grid-column: 1 / -1;
}

.form-submit .submit {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit .submit:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr;
    }
}

/* Single Post Layout with Sidebar */
.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        margin-top: 40px;
    }
}

/* Single Post Sidebar Styles */
.single-post-sidebar {
    position: relative;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    color: var(--text-color);
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Search Widget */
.search-form-container {
    position: relative;
    display: flex;
}

.search-field {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: var(--primary-color);
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-submit::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    height: 110%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
}

.search-submit:hover {
    background-color: var(--secondary-color);
}

.search-submit:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.search-submit i {
    position: relative;
    z-index: 2;
}

/* Latest Posts Widget */
.sidebar-latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-post:hover {
    background-color: #f8f8f8;
    transform: translateX(5px);
}

.sidebar-post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.sidebar-post:hover::after {
    width: 100%;
}

.sidebar-post-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post:hover .sidebar-post-thumb {
    border-color: var(--primary-color);
}

.sidebar-post:hover .sidebar-post-thumb img {
    transform: scale(1.05);
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 5px;
    font-weight: 600;
}

.sidebar-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: var(--primary-color);
}

.sidebar-post-meta {
    font-size: 0.8rem;
    color: #777;
}

.sidebar-post-date {
    display: block;
}

/* Categories Widget */
.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-category-item a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-category-item a:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    color: #777;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-category-item a:hover .category-count {
    background-color: var(--primary-color);
    color: white;
}

/* Tags Widget */
.sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-tag-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Styles for Sidebar */
@media (max-width: 768px) {
    .sidebar-widget {
        padding: 20px;
    }
    
    .sidebar-widget-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .sidebar-post-thumb {
        flex: 0 0 70px;
        height: 50px;
    }
    
    .sidebar-post-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .sidebar-widget {
        padding: 15px;
    }
    
    .sidebar-post {
        gap: 10px;
    }
    
    .sidebar-post-thumb {
        flex: 0 0 60px;
        height: 45px;
    }
    
    .sidebar-tag-link {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

/* Animated Categories Widget */
.animated-category a {
    display: block;
    padding: 12px 15px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-direction: column;
}

.animated-category a:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.category-icon {
    color: var(--primary-color);
}

.category-count-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-count {
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #666;
    background-color: transparent;
    padding: 0;
}

.category-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.category-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

.animated-category:hover .category-bar {
    background-color: var(--accent-color);
}

/* Popular Authors Widget */
.sidebar-authors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-author-item {
    margin-bottom: 15px;
}

.sidebar-author-item:last-child {
    margin-bottom: 0;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.author-link:hover {
    background-color: #f5f5f5;
}

.author-avatar img {
    border-radius: 50%;
    border: 2px solid #eee;
    transition: transform 0.3s ease;
}

.author-link:hover .author-avatar img {
    transform: scale(1.1);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.author-posts-count {
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 768px) {
    .category-info {
        gap: 8px;
    }
    
    .animated-category a {
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .category-bar-container {
        height: 4px;
    }
    
    .animated-category a {
        padding: 8px 10px;
    }
    
    .author-link {
        gap: 10px;
    }
    
    .author-avatar img {
        width: 35px;
        height: 35px;
    }
}

/* Enhanced Comments Styling */
.post-comments-section {
    margin-top: 50px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.post-comments-header {
    padding: 25px 30px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.comments-title i {
    color: var(--primary-color);
}

.comments-disclaimer {
    font-size: 0.95rem;
    color: #666;
}

.comment-list {
    list-style: none;
    padding: 0 30px;
    margin: 0;
}

.comment-body {
    margin: 30px 0;
    position: relative;
    padding-left: 80px;
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-author img {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
    color: var(--text-color);
    margin-right: 10px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.comment-metadata a {
    color: #777;
}

.comment-content {
    line-height: 1.6;
    color: #444;
}

.comment-content p {
    margin-bottom: 15px;
}

.reply {
    margin-top: 10px;
}

.reply a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f1f1f1;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
}

.reply a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Comment Form Styling */
.comment-respond {
    padding: 30px 30px 40px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.comment-reply-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.comment-notes {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.comment-form textarea {
    height: 150px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-submit {
    margin-top: 10px;
}

.form-submit .submit {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit .submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Comment Threading */
.comment .children {
    list-style: none;
    margin-left: 30px;
    border-left: 2px solid #eee;
    padding-left: 20px;
    margin-top: 20px;
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-body {
        padding-left: 70px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }
    
    .author-links {
        justify-content: center;
    }
    
    .post-comments-header {
        padding: 20px;
    }
    
    .comment-list {
        padding: 0 20px;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .comment .children {
        margin-left: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 576px) {
    .comment-body {
        padding-left: 0;
        padding-top: 60px;
    }
    
    .comment-author img {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .comment-author {
        text-align: center;
        flex-direction: column;
    }
    
    .comment-metadata {
        text-align: center;
    }
    
    .reply {
        text-align: center;
    }
    
    .comment .children {
        margin-left: 0;
        padding-left: 10px;
    }
    
    .comments-title {
        font-size: 1.3rem;
    }
}

/* Global Heading Font Sizes */
h1, .h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
}

h2, .h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 25px;
}

h3, .h3 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
}

h4, .h4 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
}

h5, .h5 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 10px;
}

h6, .h6 {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Single Post Content Headings */
.single-post-content-body h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-content-body h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 20px;
}

.single-post-content-body h3 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 30px;
    margin-bottom: 20px;
}

.single-post-content-body h4 {
    font-size: 24px;
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 15px;
}

.single-post-content-body h5 {
    font-size: 20px;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 10px;
}

.single-post-content-body h6 {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Responsive Headings for Mobile */
@media (max-width: 768px) {
    h1, .h1, .single-post-content-body h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    h2, .h2, .single-post-content-body h2 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    h3, .h3, .single-post-content-body h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    h4, .h4, .single-post-content-body h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    h5, .h5, .single-post-content-body h5 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    h6, .h6, .single-post-content-body h6 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .single-post-title {
        font-size: 32px !important;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
    
    .comments-title, 
    .comment-reply-title {
        font-size: 22px;
    }
}

/* Mobile Sidebar Styles */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: #fff;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.mobile-sidebar-toggle i {
    font-size: 20px;
}

.single-post-sidebar,
.widget-area {
    transition: transform 0.3s ease;
}

/* Simplified Categories Sidebar */
.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-item {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.sidebar-category-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-category-item a:hover {
    background-color: #f8f8f8;
    padding-left: 20px;
    color: var(--primary-color);
}

.category-name {
    font-size: 15px;
}

@media (max-width: 992px) {
    .single-post-layout {
        display: block;
    }
    
    .single-post-wrapper {
        width: 100%;
    }
    
    .single-post-sidebar,
    .widget-area {
        width: 300px;
        position: fixed;
        top: 0;
        right: -320px;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        z-index: 1000;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .single-post-sidebar.active,
    .widget-area.active {
        right: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .sidebar-close {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        background: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .single-post-sidebar,
    .widget-area {
        width: 280px;
    }
}

/* Additional mobile post content fixes */
@media (max-width: 576px) {
    .single-post-content-body {
        padding: 0 15px 20px;
        overflow-x: hidden;
        text-align: justify;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .single-post-content-body h1, 
    .single-post-content-body h2, 
    .single-post-content-body h3, 
    .single-post-content-body h4, 
    .single-post-content-body h5, 
    .single-post-content-body h6 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        word-wrap: break-word;
    }
    
    .single-post-content-body p {
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .single-post-content-body ul,
    .single-post-content-body ol {
        padding-right: 15px;
    }
    
    .single-post-header {
        text-align: center;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0 10px;
    }
    
    .author-meta, 
    .post-date, 
    .post-categories {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .single-post-content {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Fix potential table overflow */
    .single-post-content-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .post-comments-section {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .single-post-content-body {
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Fix headings alignment */
    .single-post-content-body h1, .single-post-content-body h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .single-post-content-body h3 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .single-post-content-body h4 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    /* Improve content readability */
    .single-post-content-body p {
        margin-bottom: 1.2rem;
        width: 100%;
        line-height: 1.7;
    }
}

/* Fix image overflow */
.single-post-content-body img,
.single-post-content-body figure,
.single-post-content-body iframe {
    max-width: 100%;
    height: auto;
}

/* Additional fixes for smallest screens */
@media (max-width: 480px) {
    .single-post-content {
        border-radius: 6px;
    }
    
    .single-post-title {
        font-size: 1.5rem !important;
        padding: 0 5px;
    }
    
    .single-post-meta {
        gap: 8px;
    }
    
    .author-meta {
        gap: 5px;
    }
    
    .single-post-content-body {
        padding: 0 12px 20px;
        font-size: 0.95rem;
    }
}

/* Responsive Image for About Section */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile-first approach for student image */
.student-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    border-radius: 8px;
}

/* Desktop styles */
@media (min-width: 993px) {
    .responsive-img {
        height: 100%;
        object-fit: cover;
        max-height: none;
    }
    
    .student-image-wrapper {
        height: 100%;
        align-items: flex-end; /* Align to bottom on desktop */
    }
    
    .about-us-image {
        display: flex;
        align-items: flex-end; /* Align to bottom on desktop */
        height: 100%;
    }
}

/* Tablet landscape styles */
@media (min-width: 769px) and (max-width: 992px) {
    .responsive-img {
        max-height: 400px;
        object-fit: cover;
        margin: 0 auto;
    }
    
    .about-us-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 2rem;
        height: auto;
        display: flex;
        align-items: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        align-items: center;
    }
}

/* Tablet portrait styles */
@media (min-width: 577px) and (max-width: 768px) {
    .responsive-img {
        max-height: 350px;
        width: 100%;
        object-position: center;
    }
    
    .about-us-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
}

/* Mobile styles */
@media (max-width: 576px) {
    .responsive-img {
        max-height: 300px;
        width: 100%;
        object-position: center top;
    }
    
    .about-us-image {
        margin-bottom: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
    }
    
    .student-image-wrapper {
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
        align-items: center;
    }
}

/* Desktop-specific styles to fix image positioning at the bottom */
@media (min-width: 993px) {
    .about-us-grid {
        align-items: stretch;
        min-height: 500px;
    }

    .about-us-image {
        align-items: flex-end;
        min-height: 500px;
    }

    .student-image-wrapper {
        align-items: flex-end;
        min-height: 500px;
    }

    .responsive-img {
        object-position: center bottom;
        min-height: 500px;
        max-height: 600px;
        object-fit: cover;
    }
}

/* Custom classes for desktop alignment */
.desktop-bottom-align {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.desktop-image {
    display: block;
    width: 100%;
}

@media (min-width: 993px) {
    .desktop-bottom-align {
        align-items: flex-end;
        justify-content: center;
        height: 100%;
    }

    .desktop-image {
        object-position: center bottom;
        max-height: 600px;
        object-fit: cover;
    }
}

/* Testimonial author styling */
.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Icon Styling */
.profile-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f7fc;
}

.profile-icon i {
    font-size: 2.5rem;
    color: #0073aa;
}

.profile-icon-1 i {
    color: #ff6b6b;
}

.profile-icon-2 i {
    color: #4caf50;
}

.profile-icon-3 i {
    color: #7971ea;
}

.author-name {
    font-size: 0.95rem !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-icon i {
        font-size: 2rem;
    }
    
    .author-name {
        font-size: 0.85rem !important;
    }
    
    .testimonial-author-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .profile-icon i {
        font-size: 1.8rem;
    }
    
    .author-name {
        font-size: 0.8rem !important;
    }
    
    .testimonial-author-info p {
        font-size: 0.75rem;
    }
    
    .testimonial-author-info h4 {
        font-size: 0.85rem;
    }
}

/* Touch-specific styles for mobile devices */
html.touchevents .dropdown-toggle-indicator {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    right: 10px;
}

html.touchevents .dropdown-toggle-indicator::before {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Make mobile menu items more touchable */
@media (max-width: 992px) {
    .nav-menu > li > a {
        padding: 15px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .nav-menu .sub-menu li {
        padding: 0;
    }
    
    .nav-menu .sub-menu a {
        padding: 12px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Improve dropdown indicator for all mobile devices */
    .dropdown-toggle-indicator {
        width: 36px;
        height: 36px;
        touch-action: manipulation;
    }
    
    /* Ensure z-index is correct for overlays */
    .main-navigation.toggled {
        z-index: 9999;
    }
    
    /* Fix any iOS specific issues with fixed positioning */
    .ios .main-navigation.toggled .nav-menu-wrapper {
        position: fixed;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Specifically target older iOS versions that might have issues */
    @supports (-webkit-overflow-scrolling: touch) {
        .main-navigation.toggled .nav-menu-wrapper {
            padding-bottom: 80px; /* Extra padding to ensure menu can be scrolled fully */
        }
        
        .dropdown-toggle-indicator {
            padding: 10px; /* Larger tap target */
        }
    }
}

/* Category Page Layout */
.category-page-layout {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
}

.category-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.category-header-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.category-text {
    flex: 1;
}

.category-title {
    font-size: 28px;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 700;
}

.category-description {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.category-stats {
    background-color: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 8px;
    margin-left: 20px;
    text-align: center;
}

.category-post-count .count-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.category-post-count .count-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-content-wrapper {
    display: flex;
    gap: 30px;
}

.category-content {
    flex: 1;
}

.category-sidebar {
    width: 320px;
    position: relative;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.category-post-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.category-post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.post-date, .post-comments {
    display: flex;
    align-items: center;
}

.post-date i, .post-comments i {
    margin-right: 5px;
}

.entry-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.entry-footer {
    margin-top: auto;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    color: #2980b9;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 8px;
    color: #333;
    margin: 0 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #3498db;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f8f8f8;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

/* Enhanced Sidebar Styles */
.widget-area {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    padding: 25px;
}

.sidebar-widget {
    margin-bottom: 35px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-size: 20px;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
    color: #333;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #5DADE2);
    border-radius: 3px;
}

.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-item {
    margin-bottom: 12px;
}

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

.sidebar-category-item a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px 15px;
    background-color: #f8f8f8;
}

.sidebar-category-item a:hover {
    background-color: #f0f0f0;
}

.category-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.category-icon {
    color: #3498db;
    margin-right: 10px;
}

.category-name {
    flex: 1;
    font-weight: 500;
}

.category-count {
    background-color: #e1e1e1;
    color: #555;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 28px;
    text-align: center;
}

.category-bar-container {
    height: 4px;
    background-color: #e1e1e1;
    border-radius: 2px;
    overflow: hidden;
}

.category-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #5DADE2);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.sidebar-latest-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post:hover .sidebar-post-thumb img {
    transform: scale(1.1);
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.4;
}

.sidebar-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: #3498db;
}

.sidebar-post-meta {
    font-size: 12px;
    color: #888;
}

.sidebar-post-date {
    display: flex;
    align-items: center;
}

.sidebar-post-date i {
    margin-right: 5px;
}

.sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-link {
    display: inline-flex;
    align-items: center;
    background-color: #f8f8f8;
    color: #555;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-tag-link:hover {
    background-color: #3498db;
    color: #fff;
}

.tag-count {
    font-size: 11px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 5px;
}

.sidebar-tag-link:hover .tag-count {
    background-color: rgba(255,255,255,0.2);
}

.sidebar-subscribe-form p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    border-color: #3498db;
    background-color: #fff;
    outline: none;
}

.subscribe-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-button i {
    margin-right: 8px;
}

.subscribe-button:hover {
    background: linear-gradient(135deg, #2980b9, #1c5480);
    transform: translateY(-2px);
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle i {
    margin-right: 8px;
}

.mobile-sidebar-toggle:hover {
    background-color: #2980b9;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .category-content-wrapper {
        gap: 20px;
    }
    
    .category-sidebar {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .category-header {
        padding: 25px;
    }
    
    .category-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .category-content-wrapper {
        flex-direction: column;
    }
    
    .category-sidebar {
        width: 100%;
        margin-top: 30px;
    }
    
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-stats {
        margin-left: 0;
        margin-top: 20px;
        align-self: flex-start;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-sidebar {
        position: fixed;
        top: 0;
        right: -350px;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        z-index: 999;
        padding: 60px 25px 25px;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .category-sidebar.active {
        right: 0;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .sidebar-close {
        display: flex;
    }
}

@media (max-width: 576px) {
    .category-header {
        padding: 20px;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    .category-post-count .count-number {
        font-size: 28px;
    }
    
    .entry-title {
        font-size: 18px;
    }
    
    .sidebar-widget-title {
        font-size: 18px;
    }
}

/* Add jQuery for sidebar toggle functionality */
/* ... existing code ... */

/* Animations for Categories */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* ... existing code ... */

/*--------------------------------------------------------------
# 404 Page Styles
--------------------------------------------------------------*/
.error-404-container {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.error-number {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    color: #333;
}

.error-number .four {
    animation: shake 5s infinite;
    transform-origin: center;
}

.error-number .four.first {
    animation-delay: 0.2s;
}

.error-number .four.second {
    animation-delay: 0.4s;
}

.error-number .zero {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 0 10px;
}

.pulse-circle {
    fill: none;
    stroke: #ff6b6b;
    stroke-width: 5;
    stroke-linecap: round;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        stroke-width: 5;
        transform: scale(1);
    }
    50% {
        stroke-width: 8;
        transform: scale(1.05);
    }
    100% {
        stroke-width: 5;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 90%, 100% {
        transform: rotate(0deg);
    }
    92% {
        transform: rotate(5deg);
    }
    94% {
        transform: rotate(-5deg);
    }
    96% {
        transform: rotate(3deg);
    }
    98% {
        transform: rotate(-3deg);
    }
}

.page-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.error-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Search form */
.error-search {
    margin-bottom: 40px;
}

.error-search h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.error-search .search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.error-search .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.error-search .search-field:focus {
    outline: none;
    border-color: #4e73df;
}

.error-search .search-submit {
    padding: 12px 20px;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.error-search .search-submit:hover {
    background-color: #3a5bbf;
}

/* Suggestions */
.error-suggestions {
    margin-bottom: 40px;
}

.error-suggestions h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.suggestion-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    list-style: none;
}

.suggestion-links li {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
}

.suggestion-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
}

.suggestion-link svg {
    margin-bottom: 10px;
    stroke: #4e73df;
    transition: transform 0.3s ease;
}

.suggestion-link span {
    font-weight: 500;
}

.suggestion-link:hover, 
.suggestion-link.hover {
    background-color: #4e73df;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(78, 115, 223, 0.2);
}

.suggestion-link:hover svg, 
.suggestion-link.hover svg {
    stroke: white;
    transform: scale(1.2);
}

/* Go back button */
.go-back-container {
    margin-bottom: 40px;
}

.go-back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    color: #4e73df;
    border: 2px solid #4e73df;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.go-back-button svg {
    margin-right: 10px;
    transition: transform 0.3s;
}

.go-back-button:hover {
    background-color: #4e73df;
    color: #fff;
}

.go-back-button:hover svg {
    transform: translateX(-5px);
}

/* Fun fact section */
.fun-fact-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
}

.fun-fact-container h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.fun-fact-content {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fun-fact {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    transition: opacity 0.5s ease;
}

#fun-fact.fade-out {
    opacity: 0;
}

#fun-fact.fade-in {
    opacity: 1;
}

.new-fact-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #36b9cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.new-fact-button svg {
    margin-right: 8px;
}

.new-fact-button:hover {
    background-color: #2a9aaa;
}

@media (max-width: 768px) {
    .error-number {
        font-size: 100px;
    }
    
    .error-number .zero {
        width: 80px;
        height: 80px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .error-text {
        font-size: 16px;
    }
    
    .suggestion-links {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-links li {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .error-content {
        padding: 20px;
    }
    
    .error-number {
        font-size: 80px;
    }
    
    .error-number .zero {
        width: 60px;
        height: 60px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

/* Search Results Page Responsive Styles */
.search .page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 10px;
}

.search .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.search .page-title span {
    color: var(--primary-color);
    font-weight: 600;
}

.search article {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search .entry-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.search .entry-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search .entry-title a:hover {
    color: var(--primary-color);
}

.search .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.search .entry-summary {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.search .entry-footer {
    font-size: 0.85rem;
    color: #777;
}

/* Responsive styles for search results */
@media (max-width: 992px) {
    .search .site-main {
        display: flex;
        flex-direction: column;
    }
    
    .search article {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .search .entry-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .search .page-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .search .page-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .search .entry-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search .entry-summary {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .search .page-title {
        font-size: 1.4rem;
    }
    
    .search article {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .search .entry-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .search .entry-meta {
        font-size: 0.8rem;
    }
    
    .search .entry-summary {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .search .entry-footer {
        font-size: 0.75rem;
    }
    
    .search .container {
        padding: 0 10px;
    }
}

/* Post thumbnail responsive styles for search results */
.search .post-thumbnail {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.search .post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.search article:hover .post-thumbnail img {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .search .post-thumbnail {
        margin-bottom: 15px;
    }
}

/* Search results navigation responsiveness */
.search .posts-navigation {
    margin-top: 30px;
    margin-bottom: 30px;
}

.search .posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search .posts-navigation a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.search .posts-navigation a:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 576px) {
    .search .posts-navigation {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .search .posts-navigation a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* No results found responsive styles */
.search .no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 30px;
}

.search .no-results .page-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.search .no-results .page-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.search .no-results p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .search .no-results {
        padding: 30px 15px;
    }
    
    .search .no-results .page-title {
        font-size: 1.4rem;
    }
    
    .search .no-results p {
        font-size: 0.9rem;
    }
}

/* Enhanced Search Results Page Styling */
.search-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin: 40px 0;
    position: relative;
}

.search .site-main {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.search .site-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.05), rgba(0, 115, 170, 0.1));
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.search .page-title {
    position: relative;
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.search .page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.search .page-title span {
    color: var(--primary-color);
    position: relative;
}

.search .page-title span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 115, 170, 0.1);
    bottom: 2px;
    left: 0;
    z-index: -1;
    border-radius: 4px;
}

.search article {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    z-index: 1;
}

.search article::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #e8e8e8;
}

.search article:hover::before {
    opacity: 1;
}

.search .entry-header {
    margin-bottom: 18px;
}

.search .entry-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.search .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.search .entry-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.search .entry-title a:hover {
    color: var(--primary-color);
}

.search .entry-title a:hover::after {
    width: 100%;
}

.search .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.search .entry-meta .posted-on,
.search .entry-meta .posted-by,
.search .entry-meta .post-categories {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f8f8;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search .entry-meta .posted-on:hover,
.search .entry-meta .posted-by:hover,
.search .entry-meta .post-categories:hover {
    background-color: #f0f0f0;
}

.search .entry-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.search .post-thumbnail {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.search .post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    object-fit: cover;
    display: block;
}

.search article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.search .entry-summary {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.search .entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #888;
}

.search .post-tags {
    color: #888;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search .read-more-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 18px;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
}

.search .read-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.search .read-more-link i {
    transition: transform 0.3s ease;
}

.search .read-more-link:hover i {
    transform: translateX(3px);
}

/* Navigation buttons for search results */
.search .posts-navigation {
    margin-top: 30px;
}

.search .posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search .posts-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
}

.search .posts-navigation a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.25);
}

.search .posts-navigation .nav-next a i {
    margin-left: 8px;
}

/* Search Sidebar Styling */
.search-sidebar {
    position: sticky;
    top: 30px;
}

.search-sidebar .widget {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.search-sidebar .widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.05), rgba(0, 115, 170, 0.1));
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.search-sidebar .widget:last-child {
    margin-bottom: 0;
}

.search-sidebar .widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #333;
    font-weight: 600;
    z-index: 1;
}

.search-sidebar .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.search-sidebar .widget-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Custom search form in sidebar */
.search-sidebar .search-form {
    display: flex;
    position: relative;
}

.search-sidebar .search-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-sidebar .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.search-sidebar .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-sidebar .search-submit:hover {
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}

/* Stay Updated Form */
.stay-updated-form {
    margin-top: 20px;
}

.stay-updated-form .form-group {
    position: relative;
}

.stay-updated-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.stay-updated-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.stay-updated-form .subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
}

.stay-updated-form .subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.25);
}

.stay-updated-form .subscribe-btn i {
    transition: transform 0.3s ease;
}

.stay-updated-form .subscribe-btn:hover i {
    transform: translateX(3px);
}

/* Enhanced Categories List */
.search-sidebar .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.search-sidebar .category-item {
    margin: 0;
}

.search-sidebar .category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: #f8f8f8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.search-sidebar .category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-sidebar .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-sidebar .category-link:hover .category-icon {
    transform: scale(1.1);
}

.search-sidebar .category-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-sidebar .category-name {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.search-sidebar .category-count {
    font-size: 0.8rem;
    color: #777;
}

/* Responsive styles */
@media (max-width: 992px) {
    .search-page-layout {
        grid-template-columns: 1fr;
    }
    
    .search-sidebar {
        margin-top: 30px;
        position: static;
    }
    
    .search-sidebar .categories-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-page-layout {
        margin: 25px 0;
    }
    
    .search .site-main,
    .search-sidebar .widget {
        padding: 20px;
        border-radius: 12px;
    }
    
    .search .page-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .search .page-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .search article {
        padding: 20px;
    }
    
    .search .entry-title {
        font-size: 1.4rem;
    }
    
    .search .post-tags {
        display: none;
    }
    
    .search .entry-footer {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .search-page-layout {
        margin: 15px 0;
    }
    
    .search .site-main,
    .search-sidebar .widget {
        padding: 15px;
        border-radius: 10px;
    }
    
    .search .page-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .search article {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .search .entry-title {
        font-size: 1.2rem;
    }
    
    .search .entry-meta {
        font-size: 0.8rem;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .search .entry-meta .posted-on,
    .search .entry-meta .posted-by,
    .search .entry-meta .post-categories {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .search .entry-summary {
        font-size: 0.9rem;
    }
    
    .search-sidebar .categories-list {
        grid-template-columns: 1fr;
    }
    
    .search .posts-navigation .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .search .posts-navigation a {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced No Results Found Styling */
.search-no-results {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.search-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1), rgba(0, 115, 170, 0.2));
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.1);
}

.search-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 115, 170, 0.3));
}

.no-results-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.search-suggestions {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.search-suggestions h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.search-suggestions h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.search-suggestions li {
    position: relative;
    padding-left: 25px;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.search-suggestions li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.search-again {
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-again h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.search-again h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.search-again .search-form {
    position: relative;
    margin-top: 15px;
}

.search-again .search-field {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-again .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
}

.search-again .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-again .search-submit:hover {
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}

.popular-posts {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.popular-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.popular-posts h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.popular-posts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.popular-posts-list li {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.popular-posts-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    position: relative;
    padding-left: 30px;
    height: 100%;
}

.popular-posts-list a::before {
    content: '\f15c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    position: absolute;
    left: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.popular-posts-list a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.popular-posts-list a:hover::before {
    color: white;
}

@media (max-width: 768px) {
    .search-no-results {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .search-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }
    
    .no-results-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .search-suggestions,
    .search-again,
    .popular-posts {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .search-suggestions h3,
    .search-again h3,
    .popular-posts h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .search-suggestions li {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .search-no-results {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .search-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .popular-posts-list li {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .search-suggestions,
    .search-again,
    .popular-posts {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .search-suggestions li {
        font-size: 0.9rem;
        padding-left: 20px;
    }
    
    .search-suggestions li::before {
        font-size: 0.75rem;
    }
    
    .search-again .search-field {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Newsletter form in footer */
.footer-newsletter-form {
    position: relative;
}

.newsletter-form-group {
    position: relative;
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 100%;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #0088cc;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background-color: #006699;
}

.newsletter-submit.loading {
    position: relative;
}

.newsletter-submit.loading svg {
    opacity: 0;
}

.newsletter-submit.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.newsletter-message-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.newsletter-message-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.newsletter-message.animate-success {
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Sidebar Newsletter Form */
.sidebar-newsletter-form .newsletter-form-group {
    position: relative;
    margin-bottom: 0;
}

.sidebar-newsletter-form .newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.sidebar-newsletter-form .newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.sidebar-newsletter-form .newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-newsletter-form .newsletter-submit:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.sidebar-newsletter-form .newsletter-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.sidebar-newsletter-form .newsletter-submit.loading {
    position: relative;
}

.sidebar-newsletter-form .newsletter-submit.loading i {
    opacity: 0;
}

.sidebar-newsletter-form .newsletter-submit.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sidebar-newsletter-form {
    margin-top: 15px;
}

.sidebar-form-group {
    display: flex;
    position: relative;
    margin-bottom: 10px;
}

.sidebar-newsletter-form .newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.sidebar-newsletter-form .newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.sidebar-newsletter-form .newsletter-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-newsletter-form .newsletter-submit:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.sidebar-newsletter-form .newsletter-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.sidebar-newsletter-form .newsletter-submit.loading {
    position: relative;
}

.sidebar-newsletter-form .newsletter-submit.loading i {
    opacity: 0;
}

.sidebar-newsletter-form .newsletter-submit.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Follow Us Section Styles */
.follow-us-section {
    margin-top: 40px;
    background-color: #e1f5fe;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
}

.follow-us-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.follow-us-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color, #0073aa);
    border-radius: 3px;
}

.follow-us-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 20px auto 15px;
    max-width: 80%;
    font-weight: 400;
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Social platform specific colors */
.social-link.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.social-link.instagram:hover {
    background-color: #e4405f;
    border-color: #e4405f;
    color: #fff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.social-link.whatsapp:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .follow-us-section {
        padding: 25px 15px;
    }
    
    .follow-us-title {
        font-size: 20px;
    }
    
    .follow-us-description {
        font-size: 15px;
        max-width: 95%;
        margin: 15px auto 10px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .social-links-container {
        gap: 10px;
    }
    
    .follow-us-description {
        font-size: 14px;
        max-width: 100%;
        margin: 12px auto 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Additional Follow Us Section Styles */
.social-link.animated {
    animation: socialIconPop 0.3s ease;
}

@keyframes socialIconPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Touch device support */
.touchevents .social-link {
    transition: all 0.3s ease;
}

.touchevents .social-link.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Platform-specific styles for active state on touch devices */
.touchevents .social-link.facebook.active {
    background-color: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.touchevents .social-link.twitter.active {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.touchevents .social-link.instagram.active {
    background-color: #e4405f;
    border-color: #e4405f;
    color: #fff;
}

.touchevents .social-link.linkedin.active {
    background-color: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.touchevents .social-link.youtube.active {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.touchevents .social-link.whatsapp.active {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* CGPA Calculator Section */
.cgpa-calculator-section {
    padding: 60px 0;
    position: relative;
    background-color: #f8f9fa;
}

.cgpa-calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0073aa, #0098d7, #00c1ff);
}

.section-title-cgpa {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: #0073aa;
    font-weight: 700;
}

.section-title-cgpa::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #0073aa, #00c1ff);
}

.cgpa-calculator-container {
    margin-top: 40px;
}

.cgpa-calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.cgpa-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cgpa-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.cgpa-card-header {
    background-color: #006699;
    padding: 20px;
    text-align: center;
}

.cgpa-card-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.cgpa-card-body {
    padding: 25px;
}

.cgpa-card-body p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.calculator-info {
    background-color: #f0f7fb;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.example-case {
    margin-bottom: 15px;
}

.example-case h4 {
    color: #006699;
    margin-top: 0;
    margin-bottom: 10px;
}

.example-case ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.example-case li {
    margin-bottom: 8px;
    color: #444;
}

.time-period-selection {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.time-period-selection label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.time-period-selection input {
    margin-right: 8px;
}

.cgpa-semester-container {
    margin-top: 20px;
}

.semester {
    background-color: #f8f9fb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.semester-title {
    font-size: 1.2rem;
    color: #006699;
    margin: 0;
    font-weight: 600;
}

.semester-number {
    font-weight: 700;
}

.remove-semester-btn, 
.remove-course-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-semester-btn:hover, 
.remove-course-btn:hover {
    background-color: #ffecee;
}

.courses-container {
    margin-bottom: 15px;
}

.course-row {
    margin-bottom: 10px;
}

.course-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.course-name {
    flex: 2;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.course-credit, 
.course-grade {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.course-credit {
    min-width: 120px;
}

.course-grade {
    min-width: 120px;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.courses-table th, 
.courses-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.courses-table th {
    background-color: #006699;
    color: white;
    font-weight: 600;
}

.courses-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.semester-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-course-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-course-btn:hover {
    background-color: #0069d9;
}

.semester-result {
    font-weight: 600;
    color: #555;
}

.semester-gpa {
    color: #006699;
    font-size: 1.2rem;
    font-weight: 700;
}

.cgpa-calculation-section {
    background-color: #f0f7fb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}

.total-row:last-child {
    border-bottom: none;
}

.total-row label {
    font-weight: 600;
    color: #444;
}

.total-value {
    font-weight: 700;
    color: #006699;
}

.cgpa-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.calculate-cgpa-btn, 
.clear-form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calculate-cgpa-btn {
    background-color: #006699;
    color: white;
    flex: 2;
}

.calculate-cgpa-btn:hover {
    background-color: #004d80;
}

.clear-form-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    flex: 1;
}

.clear-form-btn:hover {
    background-color: #e2e6ea;
    color: #495057;
}

.cgpa-actions {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.add-semester-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.add-semester-btn:hover {
    background-color: #218838;
}

.previous-data-section {
    background-color: #fff9e6;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #ffc107;
}

.previous-data-row {
    margin-bottom: 15px;
}

.previous-data-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.previous-data-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cgpa-result {
    background-color: #e0f7fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border: 1px dashed #006699;
    position: relative;
}

.cgpa-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #006699, #00a9e0);
    border-radius: 8px 8px 0 0;
}

.cgpa-result-inner {
    text-align: center;
}

.cgpa-result h3 {
    color: #006699;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.cgpa-formula {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 3px solid #007bff;
    text-align: left;
    font-size: 0.95rem;
}

.cgpa-value {
    font-size: 3rem;
    font-weight: 700;
    color: #006699;
    margin: 20px 0;
    line-height: 1;
}

.cgpa-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.summary-item {
    background: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 200px;
}

.summary-item span:first-child {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.summary-item span:last-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: #006699;
}

@media (max-width: 992px) {
    .section-title-cgpa {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .cgpa-calculator-section {
        padding: 40px 0;
    }
    
    .section-title-cgpa {
        font-size: 1.7rem;
    }
    
    .cgpa-card-body {
        padding: 20px 15px;
    }
    
    .semester {
        padding: 15px;
    }
    
    .course-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .course-name, 
    .course-credit, 
    .course-grade {
        width: 100%;
    }
    
    .semester-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .semester-result {
        margin-top: 5px;
    }
    
    .cgpa-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cgpa-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .cgpa-calculator-section {
        padding: 30px 0;
    }
    
    .section-title-cgpa {
        font-size: 1.6rem;
    }
    
    .cgpa-result h3 {
        font-size: 1.3rem;
    }
    
    .cgpa-value {
        font-size: 2.2rem;
    }
    
    .summary-item {
        width: 100%;
    }
    
    .cgpa-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .semester-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .remove-semester-btn {
        align-self: flex-end;
    }
    
    .time-period-selection {
        flex-direction: column;
        gap: 10px;
    }
}

/* CGPA Animation Effects */
.cgpa-result.highlight {
    animation: highlightPulse 1.5s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 115, 170, 0.6);
    }
    100% {
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    }
}

/* Educational Tools Section */
.educational-tools-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
}

.educational-tools-section .section-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.tool-card h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tool-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #28a745;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #28a745;
    margin-top: auto;
}

.tool-btn:hover {
    background-color: #218838;
    border-color: #218838;
    color: #fff;
    transform: translateY(-2px);
}

.view-all-tools-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #28a745;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #28a745;
}

.btn-view-all:hover {
    background-color: #218838;
    border-color: #218838;
    color: #fff;
}

/* Responsive Styles for Educational Tools */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .educational-tools-section {
        padding: 4rem 0;
    }
    
    .educational-tools-section .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .tool-btn {
        width: 100%;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .educational-tools-section {
        padding: 3rem 0;
    }
    
    .btn-view-all {
        width: 100%;
        max-width: 300px;
    }
}