/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* About Section */
.about {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* About Section Title */
.about h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}
/* Custom CSS for RKMVVM School Website */

/* General Styles */
:root {
    --primary-color: #182f7cd2;
    
    --dark-color: #263238;
    --light-color: #f5f5f5;
}

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


/* About Section Styles */
.about {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about h2 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

.about h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.about-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.text-justify {
    text-align: justify;
}



/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 15px 0;
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .about h2 {
        font-size: 1.8rem;
    }
    
    .about h3 {
        font-size: 1.2rem;
    }
    
    footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .about h2 {
        font-size: 1.5rem;
    }
    
    .about h3 {
        font-size: 1.1rem;
    }
}
/* Section Titles */
.about h3 {
    color: #2980b9;
    margin-top: 20px;
    font-size: 22px;
}

/* Paragraph Styling */
.about p {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Underline Separator for Each Section */
.about h3 {
    position: relative;
    padding-bottom: 8px;
}

.about h3::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #ccc;
    margin-top: 8px;
}



/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    .about {
        padding: 15px;
        max-width: 95%;
    }

    .about h2 {
        font-size: 24px;
    }

    .about h3 {
        font-size: 20px;
    }

    .about p {
        font-size: 16px;
    }
}

/* Extra Small Screens (Phones) */
@media (max-width: 480px) {
    header {
        padding: 8px;
    }

    .logo {
        font-size: 1.2em;
    }

    nav ul {
        padding: 0;
    }

    .about {
        padding: 10px;
    }

    .about h2 {
        font-size: 22px;
    }

    .about h3 {
        font-size: 18px;
    }

    .about p {
        font-size: 14px;
    }

    footer {
        font-size: 14px;
    }
}
