/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);   
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: #3498db;
}

/* Featured Content section */
.featured-content {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
    text-align: center;
}

.content-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.content-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.card-features span {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features i {
    color: #3498db;
}

.card-button {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.card-button:hover {
    background: linear-gradient(135deg, #2980b9, #34495e);
    transform: translateY(-2px);
}

/* Skills card specific styling */
.content-card.skills::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.content-card.skills .card-icon {
    color: #667eea;
}

.content-card.skills .card-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.content-card.skills .card-button:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a5acd);
}

.content-card.skills .card-features i {
    color: #667eea;
}

/* Quick Access section */
.quick-access {
    background: #f8f9fa;
    padding: 4rem 2rem;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: #3498db;
}

.quick-link i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.quick-link span {
    font-weight: 600;
    text-align: center;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    padding: 1rem;
    color: #2c3e50;
}

.course-card p {
    padding: 0 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.course-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    color: #666;
    border-top: 1px solid #eee;
}

.get-started-btn {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.get-started-btn:hover {
    background-color: #2980b9;
}

/* About section */
.about {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.about h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Contact section */
.contact {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #2980b9;
}

/* AdSense Containers */
.adsense-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.adsense-ad {
    text-align: center;
    margin: 2rem 0;
}

.adsense-ad iframe {
    border: none;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 0.5rem;
    text-align: center;
    padding-left: 0;
}

footer .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

footer .footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    padding-left: 0;
}

footer .footer-section a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .featured-content h2,
    .quick-access h2,
    .about h2 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }
}

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

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

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

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

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

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* Language Switcher Styles */
.language-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .dropdown-toggle i:first-child {
    color: #3498db;
}

.language-switcher .dropdown-menu {
    min-width: 150px;
}

.language-switcher .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
}

.language-switcher .dropdown-menu a.active {
    background-color: #e8f4fd;
    color: #3498db;
    font-weight: 600;
}

.language-switcher .dropdown-menu a i {
    font-size: 0.9rem;
}

/* RTL Support for Hindi */
[data-lang="hi"] {
    direction: ltr; /* Keep LTR for mixed content */
}

[data-lang="hi"] .text-right {
    text-align: left;
}

[data-lang="hi"] .text-left {
    text-align: right;
} 