/* --- Global Reset & Background --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); /* Premium Dark Blue Gradient */
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Container --- */
.contact-section {
    padding: 60px 0;
    min-height: 100vh;
}

.box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header Section --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cfd8dc;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Single Card Grid Layout (Desktop & Mobile) --- */
.contact-grid {
    display: flex;
    flex-direction: column; /* Forces one card at a time on Desktop */
    align-items: center;
    gap: 40px; /* Space between the two main glass panels */
    width: 100%;
    max-width: 1000px; /* Limits width for better readability on large screens */
}

/* --- Glassmorphism Card Style --- */
.contact-info, .contact-extra {
    width: 100%;
    background: rgba(255, 255, 255, 0.08); /* Transparent White */
    backdrop-filter: blur(20px); /* The "Glass" blur effect */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    animation: fadeInUp 1.2s ease-out forwards;
}

.contact-info:hover, .contact-extra:hover {
    transform: translateY(-10px) scale(1.01);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* --- Content Styling --- */
.info-title, .extra-title {
    font-size: 2rem;
    color: #a0d8ef; /* School Gold Accent */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #a0d8ef;
    border-radius: 2px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.info-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    background: rgba(54,205,255,0.19);
    color: #a0d8ef;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.info-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.info-content p, .info-content a {
    margin: 0;
    color: #b0bec5;
    text-decoration: none;
    font-size: 1rem;
}

.info-content a:hover {
    color: #a0d8ef;
}

/* --- Quick Links List --- */
.quick-links h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #ffffff;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-links a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: rgba(54,205,255,0.697);
    color: #0f2027;
    font-weight: 600;
    transform: translateY(-3px);
}

/* --- Map Styling --- */
.map-wrapper {
    margin-top: 25px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Android & Mobile Optimization (max-width: 768px) --- */
@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2.2rem;
    }

    .contact-info, .contact-extra {
        padding: 30px 10px;
        width: 100%; /* Better fit for Android screens */
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .quick-links ul {
        grid-template-columns: 1fr; /* Single column for links on mobile */
    }
    
    /* Removes the blue highlight when tapping buttons on Android Chrome */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    iframe {
        height: 350px !important;
    }
}
/* Fix for long email addresses and links */
.info-content p, 
.info-content a {
    display: block;           /* Ensures it takes up its own space */
    word-wrap: break-word;    /* Older browser support */
    overflow-wrap: break-word; /* Modern browser support */
    word-break: break-all;     /* Forces break if the email is too long for the container */
    max-width: 100%;          /* Prevents it from pushing the card wider */
}

/* Specific fix for Android/Mobile view */
@media (max-width: 600px) {
    .info-content a {
        font-size: 0.9rem;    /* Slightly smaller font for long emails on mobile */
        line-height: 1.4;
    }
}
