/* ========================================
   About Page Styling - Modern UI Enhancements
   ======================================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 0 !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

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

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

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* Icon Circles */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 3px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.icon-circle:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Content Block */
.content-block {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.content-block:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 1.5rem;
}

/* Text Styling */
.text-muted {
    color: #666 !important;
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.lh-lg {
    line-height: 1.8 !important;
}

/* Motto Card */
.motto-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.motto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
}

.motto-text {
    padding: 2rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Vision Card */
.vision-card {
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

/* Principal Card */
.principal-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.principal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2) !important;
}

.principal-card .card-body {
    color: #555;
    background-clip: padding-box;
}

.principal-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

/* Principal Photo Section */
.principal-photo-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.principal-photo-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.principal-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.principal-photo-wrapper:hover .principal-photo {
    transform: scale(1.05);
}

.principal-info {
    transition: all 0.3s ease;
}

.principal-info:hover {
    transform: translateX(8px);
}

/* ========================================
   Notices Page Styles
   ======================================== */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.notice-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid transparent;
    background-clip: padding-box;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.notice-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
}

.notice-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.notice-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.notice-date .icon {
    font-size: 1.1rem;
}

.notice-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.notice-download-btn .icon {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .notices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notice-card {
        padding: 20px;
    }

    .notice-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Contact Page Styles
   ======================================== */
.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.contact-card-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-card-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card-text a:hover {
    color: #764ba2;
}

.contact-timing {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.section-heading {
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.inquiry-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.inquiry-form .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.inquiry-form .form-control,
.inquiry-form .form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.inquiry-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn .btn-icon {
    font-size: 1.3rem;
}

.info-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.info-box:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.info-text {
    color: #64748b;
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .inquiry-form-wrapper {
        padding: 30px 20px;
    }

    .contact-info-card,
    .info-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .contact-card-title {
        font-size: 1.3rem;
    }

    .map-container iframe {
        height: 350px;
    }

    .inquiry-form-wrapper {
        padding: 25px 15px;
    }
}

/* Image Gallery Styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 12px;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15) rotate(2deg);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Gallery Item Hover Effect */
.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    transform: translateY(-8px);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .principal-photo {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Courses Page Styling
   ======================================== */

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subject-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.subject-card:hover h5 {
    color: white;
}

.subject-card:hover .subject-icon {
    transform: scale(1.3) rotate(10deg);
}

.subject-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.subject-card h5 {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

/* Classes Container */
.classes-container {
    margin-top: 2rem;
}

.class-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: white;
}

.class-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.25);
}

.class-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.class-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.class-card:hover .class-image {
    transform: scale(1.15);
}

.class-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.9) 60%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.class-card:hover .class-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 1) 50%, rgba(118, 75, 162, 1) 100%);
}

.class-info {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.class-info h5 {
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* Old class-badge styling (kept for compatibility) */
.class-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.class-badge:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

/* Fees Structure */
.fees-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.fees-card:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.fees-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.fees-table {
    margin-bottom: 0;
}

.fees-table tbody tr {
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.fees-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.fees-table td {
    padding: 1rem 1.5rem;
    color: #555;
    font-size: 1.05rem;
    vertical-align: middle;
}

.fees-table td:first-child {
    font-weight: 500;
}

.fees-table td:last-child {
    color: #667eea;
    font-weight: 600;
}

.total-row {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    font-weight: 700;
}

.total-row td {
    padding: 1.2rem 1.5rem;
    font-size: 1.15rem;
    color: #667eea !important;
}

.note-row {
    background-color: rgba(102, 126, 234, 0.05);
}

.note-row td {
    color: #666 !important;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .fees-card {
        padding: 1.5rem;
    }
    
    .fees-table td {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   Facilities Page Styling
   ======================================== */

/* Educational Approach Grid */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-item {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.approach-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.approach-item:hover h5,
.approach-item:hover p {
    color: white;
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.approach-item:hover .approach-icon {
    transform: scale(1.2) rotate(10deg);
}

.approach-item h5 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1rem 0;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.approach-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.facility-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-icon {
    transform: scale(1.2) rotate(10deg);
}

.facility-card h5 {
    color: #667eea;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1rem 0;
    letter-spacing: 0.3px;
}

.facility-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.facility-list {
    list-style: none;
    padding: 1rem 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.facility-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

.facility-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Responsive adjustments for facilities */
@media (max-width: 768px) {
    .approach-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Rules & Regulations Page Styling
   ======================================== */

/* School Uniform Cards */
.uniform-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.uniform-card:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.uniform-card .card-title {
    color: #667eea;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    letter-spacing: 0.3px;
}

.uniform-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uniform-list li {
    padding: 0.8rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    line-height: 1.6;
}

.uniform-list li:last-child {
    border-bottom: none;
}

.uniform-list strong {
    color: #2c3e50;
}

/* General Rules List */
.rules-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.rule-item {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
}

.rule-item:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateX(8px);
    border-color: #667eea;
}

.rule-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.rule-content h5 {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.rule-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Behaviour & Discipline Section */
.behaviour-intro {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.behaviour-intro:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.behaviour-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.behaviour-card:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    transform: translateY(-6px);
}

.behaviour-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    letter-spacing: 0.3px;
}

.behaviour-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.behaviour-list li {
    padding: 0.7rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.behaviour-list strong {
    color: #2c3e50;
}

/* Development Programs */
.development-programs {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.programs-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.3px;
}

.program-item {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.program-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.program-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.program-item:hover .program-icon {
    transform: scale(1.2);
}

.program-item h6 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.program-item:hover h6 {
    color: white;
}

.program-item p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.program-item:hover p {
    color: white;
}

/* Responsive adjustments for rules */
@media (max-width: 768px) {
    .rule-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .development-programs {
        padding: 1.5rem;
    }
    
    .program-item {
        padding: 1.5rem;
    }
}

/* ========================================
   Faculty Page Styling
   ======================================== */

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.faculty-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: height 0.3s ease;
    z-index: 2;
}

.faculty-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.faculty-card:hover::before {
    height: 6px;
}

/* Faculty Image */
.faculty-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.faculty-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.95);
}

.faculty-card:hover .faculty-image {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1);
}

/* Faculty Overlay */
.faculty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.7) 0%, rgba(102, 126, 234, 0.95) 50%, rgba(118, 75, 162, 0.99) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.faculty-card:hover .faculty-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.overlay-content h5 {
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: 0.6px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

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

/* Faculty Info */
.faculty-info {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
}

.faculty-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faculty-card:hover .faculty-info::before {
    opacity: 1;
}

.faculty-name {
    color: #2c3e50;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
}

.faculty-card:hover .faculty-name {
    color: #667eea;
}

.faculty-department {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0.5rem 0 0.7rem 0;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.faculty-card:hover .faculty-department {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.faculty-designation {
    color: #764ba2;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.7rem 0 0.5rem 0;
    letter-spacing: 0.2px;
}

.faculty-degree {
    color: #999;
    font-size: 0.82rem;
    margin: 0.8rem 0 0 0;
    font-style: italic;
    border-top: 2px dashed rgba(102, 126, 234, 0.2);
    padding-top: 0.7rem;
    transition: all 0.3s ease;
}

.faculty-card:hover .faculty-degree {
    color: #667eea;
    border-top-color: #667eea;
}

/* Responsive adjustments for faculty */
@media (max-width: 1200px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .faculty-info {
        padding: 1.5rem;
    }
    
    .faculty-name {
        font-size: 1.05rem;
    }
    
    .faculty-department {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .faculty-designation,
    .faculty-degree {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .faculty-grid {
        grid-template-columns: 1fr;
    }
}

/* Border styling */
.border-bottom {
    border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
    padding-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .motto-card {
        margin: 0 auto;
    }
}

/* ========================================
   Navbar Custom Styling
   ======================================== */

/* Navbar container */
.navbar {
    background-color: #e8f3ff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

/* Navbar brand styling */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #3498db !important;
    background: linear-gradient(135deg, #3498db 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Navigation links */
.navbar-nav .nav-link {
    color: #555 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #3498db !important;
    background-color: #f8f9fa;
}

/* Active link styling */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Underline animation for non-active links */
.navbar-nav .nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:not(.active):hover::after {
    width: 70%;
}

/* Navbar toggler button (mobile) */
.navbar-toggler {
    border: 2px solid #667eea !important;
    padding: 0.6rem 0.85rem !important;
    border-radius: 10px;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transition: all 0.25s ease;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    outline: none !important;
}

.navbar-toggler:hover {
    background-color: #dce9ff !important;
    border-color: #764ba2 !important;
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.2);
}

.navbar-toggler:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.25);
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e") !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-nav .nav-link:not(.active)::after {
        display: none;
    }
}

/* Sticky navbar effect (optional - add 'sticky-top' class to nav) */
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Scrolled navbar variant (add via JavaScript) */
.navbar.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Carousel Styling
   ======================================== */

.hero-carousel .carousel-inner {
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.hero-carousel .carousel-item {
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35) 0%, rgba(118, 75, 162, 0.25) 50%, rgba(52, 152, 219, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-carousel .carousel-item img {
    height: 520px;
    object-fit: cover;
    width: 100%;
    filter: brightness(0.95) saturate(1.05);
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #ffffff;
    opacity: 0.9;
    transition: all 0.25s ease;
}

.hero-carousel .carousel-indicators .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 28px;
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    .hero-carousel .carousel-item img {
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-item img {
        height: 260px;
    }
    .hero-carousel {
        margin-top: 1rem;
    }
}

/* ========================================
   About School Section
   ======================================== */

.about-school {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    padding: 5rem 0;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.about-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.about-features li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Notice Board Styling */
.notice-board {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-left: 5px solid #667eea;
}

.notice-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
}

.notice-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.notice-content {
    padding: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
}

.notice-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background-color: #f8f9ff;
    border-radius: 8px;
}

.notice-date {
    flex-shrink: 0;
    background: #e8f3ff;
    color: #667eea;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

.notice-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    padding-top: 0.2rem;
}

.notice-link {
    display: block;
    text-align: center;
    padding: 1rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.notice-link:hover {
    background-color: #f8f9ff;
    color: #764ba2;
    text-decoration: none;
}

/* Custom scrollbar for notice board */
.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .about-school {
        padding: 3rem 0;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .notice-board {
        margin-top: 2rem;
    }
}

/* ========================================
   Motto & Vision Section
   ======================================== */

.motto-vision {
    background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
    padding: 5rem 0;
}

.motto-card,
.vision-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid #667eea;
}

.motto-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.18);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.motto-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.motto-list li {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f5ff 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.motto-list li:hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f5ff 100%);
    border-left-color: #764ba2;
    transform: translateX(8px);
}

.vision-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .motto-vision {
        padding: 3rem 0;
    }
    
    .motto-card,
    .vision-card {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .motto-list li {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .vision-text {
        font-size: 0.95rem;
    }
}

/* ========================================
   Educational Approach Section
   ======================================== */

.educational-approach {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.approach-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 3px solid #667eea;
    height: 100%;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-top-color: #764ba2;
}

.approach-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.approach-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.approach-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Principal's Message Section
   ======================================== */

.principals-message {
    background: #ffffff;
    padding: 5rem 0;
}

.principal-photo-frame {
    position: relative;
}

.principal-photo {
    width: 100%;
    max-width: 320px;
    height: 380px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid #e8f3ff;
    transition: all 0.3s ease;
}

.principal-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

.principal-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
}

.principal-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.principal-designation {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    opacity: 0.95;
}

.principal-qualification {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.message-content {
    background: #f8f9ff;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.message-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.message-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.message-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.2rem;
}

.message-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.message-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ddd;
}

.signature-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.signature-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .educational-approach {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .message-content {
        padding: 1.8rem;
    }
    
    .message-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .approach-card {
        padding: 1.5rem;
    }
    
    .approach-heading {
        font-size: 1.1rem;
    }
    
    .approach-text {
        font-size: 0.9rem;
    }
    
    .principal-photo {
        max-width: 100%;
        height: 300px;
    }
    
    .message-content {
        padding: 1.5rem;
    }
    
    .message-text {
        font-size: 0.95rem;
    }
}

/* ========================================
   Achievements Section
   ======================================== */

.achievements {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    padding: 5rem 0;
}

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

.achievement-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid #667eea;
}

.achievement-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.2);
}

.year-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.board-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.result-item {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f5ff 100%);
    border-left-color: #764ba2;
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.student-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0 0;
}

.student-list li {
    font-size: 0.9rem;
    color: #555;
    padding: 0.4rem 0;
    line-height: 1.5;
}

.student-list li::before {
    content: '→ ';
    color: #667eea;
    font-weight: 700;
    margin-right: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .achievements {
        padding: 3rem 0;
    }
    
    .achievements-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .board-title {
        font-size: 1.2rem;
    }
    
    .result-number {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .achievements-container {
        grid-template-columns: 1fr;
    }
    
    .year-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .board-title {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    
    .result-item {
        padding: 1.2rem;
    }
    
    .result-number {
        font-size: 1.8rem;
    }
}

    /* ========================================
       Fees Structure Section
       ======================================== */

    .fees-structure {
        background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
        padding: 5rem 0;
    }

    .fees-card {
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        border: 1px solid #eef2ff;
        height: 100%;
    }

    .fees-card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
        padding: 1.2rem 1.5rem;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .fees-list {
        list-style: none;
        margin: 0;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .fees-list li {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        font-size: 1rem;
        color: #2c3e50;
        padding-bottom: 0.6rem;
        border-bottom: 1px dashed #e5e7f5;
    }

    .fees-list li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .fees-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem 1.5rem;
        background: #f8f9ff;
        border-top: 1px solid #eef2ff;
        font-weight: 700;
        color: #2c3e50;
    }

    .total-amount {
        font-size: 1.4rem;
        color: #667eea;
    }

    .fees-note {
        padding: 1.1rem 1.5rem;
        background: #fff7e6;
        color: #8a5a00;
        border-top: 1px solid #f1e0c2;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    @media (max-width: 991.98px) {
        .fees-structure {
            padding: 3.5rem 0;
        }
    
        .fees-card-header {
            font-size: 1.1rem;
        }
    
        .fees-list li {
            font-size: 0.95rem;
        }
    }

    @media (max-width: 575.98px) {
        .fees-structure {
            padding: 3rem 0;
        }
    
        .fees-list {
            padding: 1.2rem;
        }
    
        .fees-total {
            flex-direction: column;
            gap: 0.6rem;
            align-items: flex-start;
        }
    }

        /* ========================================
           Footer Section
           ======================================== */

        .site-footer {
            background: #0f172a;
            color: #dbeafe;
            position: relative;
            overflow: hidden;
        }

        .site-footer::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 15% 20%, rgba(102, 126, 234, 0.15), transparent 35%),
                        radial-gradient(circle at 85% 30%, rgba(118, 75, 162, 0.12), transparent 32%);
            pointer-events: none;
        }

        .footer-brand h4 {
            color: #ffffff;
            font-weight: 700;
        }

        .footer-text {
            color: #cbd5e1;
            line-height: 1.6;
            margin: 0;
        }

        .footer-title {
            color: #ffffff;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 0.5rem;
        }

        .footer-links a {
            color: #cbd5e1;
            text-decoration: none;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .footer-links a:hover {
            color: #a5b4fc;
            transform: translateX(4px);
        }

        .footer-contact {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 0.6rem;
        }

        .footer-contact .icon {
            margin-right: 0.6rem;
        }

        .footer-contact li {
            display: flex;
            align-items: center;
            color: #e2e8f0;
        }

        .footer-social {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .footer-social a {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #e0e7ff;
            text-decoration: none;
            transition: all 0.2s ease;
            font-size: 0.95rem;
        }

        .footer-social a:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #ffffff;
            transform: translateY(-2px);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
        }

        .footer-bottom a {
            color: #cbd5e1;
            margin-left: 1rem;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-bottom a:hover {
            color: #a5b4fc;
        }

        @media (max-width: 575.98px) {
            .footer-bottom {
                gap: 0.75rem;
            }
    
            .footer-bottom a {
                margin-left: 0.75rem;
            }
        }

@media (max-width: 575.98px) {
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .about-features li {
        font-size: 0.9rem;
        padding-left: 2rem;
    }
    
    .notice-content {
        max-height: 350px;
    }
}

/* Mobile Navbar Enhancements */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        border: 2px solid #667eea !important;
        padding: 0.5rem 0.7rem !important;
        margin-left: auto;
        z-index: 1000;
    }
    
    .collapse.navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #e8f3ff;
        border-top: 1px solid rgba(102, 126, 234, 0.2);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 6px;
        margin: 0;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff !important;
    }
    
    .navbar-nav .nav-link:not(.active)::after {
        display: none;
    }
}
