/* Modern CSS for Ram Dhari Pvt. ITI - Updated Version */

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
}

.header-top {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    transition: var(--transition);
}

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

.logo-section {
    padding: 15px 0;
}

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

.logo img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: var(--accent-color);
}

/* Navigation Styles */
.main-nav {
    background-color: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: #fff;
    padding: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.dropdown li {
    width: 100%;
}

.dropdown li a {
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 14px;
}

.dropdown li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    background-image: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

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

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
}

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

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.slide-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.slider-dot.active {
    background-color: #fff;
}

/* Main Content Area */
.main-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

.card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

.card-body p {
    margin-bottom: 15px;
}

.card-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-body ul {
    margin-bottom: 15px;
}

/* Sidebar Styles */
.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-nav li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* News Section */
.news-section {
    margin-bottom: 30px;
}

.news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-date {
    min-width: 80px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

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

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Courses Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.course-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.course-card-content {
    padding: 20px;
}

.course-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Contact Info Cards */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.contact-info-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding-top: 50px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-links li a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
    }
    
    .dropdown.active {
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .header-top .container {
        flex-direction: column;
    }
    
    .social-icons {
        margin-top: 10px;
    }
    
    .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 20px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
}
