/* General Full-Screen Layout */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(0, 20, 40, 0.90), rgba(0, 20, 40, 0.95)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Smooth Entrance Animation */
@keyframes popUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-box {
    animation: popUp 1s ease-out forwards;
}

/* Full-Width Navigation Bar */
header {
    background-color: rgba(0, 15, 30, 0.98);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.logo-img {
    height: 65px; /* Scaled nicely for single row layout */
    width: auto;
    border-radius: 50%;
    border: 3px solid #ffcc00;
    flex-shrink: 0;
}

/* 🚀 STRICT HORIZONTAL MENU */
nav {
    display: flex;
    flex-direction: row;        /* Forces horizontal line */
    align-items: center;
    gap: 10px;                   /* Even spacing between buttons */
    white-space: nowrap;        /* Prevents text from wrapping to a 2nd line */
    overflow-x: auto;           /* Allows smooth side-scroll on small phone screens */
    scrollbar-width: none;      /* Hides scrollbar on Firefox */
    -ms-overflow-style: none;  /* Hides scrollbar on IE/Edge */
    padding-bottom: 5px;
}

nav::-webkit-scrollbar {
    display: none;              /* Hides scrollbar on Chrome/Safari */
}

/* Base Nav Link Style */
nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 9px 15px;
    border-radius: 20px;        /* Rounded pill shape */
    font-size: 0.88rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 🎨 UNIQUE COLOR FOR EACH BUTTON */
nav a[href="index.html"] {
    background-color: #3498db;  /* Blue */
}

nav a[href="about.html"] {
    background-color: #9b59b6;  /* Purple */
}

nav a[href="academics.html"] {
    background-color: #e67e22;  /* Orange */
}

nav a[href="madrasah.html"] {
    background-color: #2ecc71;  /* Emerald Green */
}

nav a[href="register.html"] {
    background-color: #e74c3c;  /* Red */
}

nav a[href="contact.html"] {
    background-color: #1abc9c;  /* Turquoise */
}

nav a[href="portal.html"], 
nav a[href="teachers-portal.html"] {
    background-color: #f1c40f;  /* Gold */
    color: #000000;             /* Dark text for contrast */
}

/* Hover Effect for All Menu Buttons */
nav a:hover, nav a.active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.6);
    filter: brightness(1.15);
}

/* Full-Width Banners & Sections */
.full-banner {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 4px solid #ffcc00;
}

.full-banner h1 {
    font-size: 2.6rem;
    color: #ffcc00;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    margin-bottom: 10px;
    font-weight: 900;
}

.full-banner p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.content-section {
    width: 100%;
    padding: 50px 8%;
    background: rgba(0, 34, 68, 0.85);
    margin-top: 25px;
    border-top: 2px solid rgba(255, 204, 0, 0.4);
    border-bottom: 2px solid rgba(255, 204, 0, 0.4);
}

.content-section h2 {
    color: #ffcc00;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Full Width Form Styling */
.full-form-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px 6%;
    background: rgba(0, 22, 44, 0.95);
    border: 2px solid #ffcc00;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffcc00;
    font-size: 1.05rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ffcc00;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #002244;
    font-size: 1rem;
    font-weight: 600;
}

.submit-btn {
    background-color: #ffcc00;
    color: #002244;
    padding: 16px;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.submit-btn:hover {
    background-color: #ffd633;
    transform: scale(1.02);
}

/* Grids & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.grid-card {
    background: rgba(0, 22, 44, 0.95);
    border: 2px solid #ffcc00;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.grid-card h3 {
    color: #ffcc00;
    margin-top: 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,204,0,0.3);
    padding-bottom: 8px;
}

.grid-card ul, .grid-card p {
    color: #ffffff;
    line-height: 1.8;
}

/* Action Buttons */
.cta-button {
    background-color: #ffcc00;
    color: #002244;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: inline-block;
    transition: all 0.3s ease;
    margin: 8px;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #ffd633;
    transform: scale(1.08);
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
}

.call-btn {
    background-color: #007bff;
    color: white;
}

.call-btn:hover {
    background-color: #0056b3;
}

/* FAQ Styling */
.faq-item {
    background: rgba(0, 22, 44, 0.9);
    border: 1px solid rgba(255, 204, 0, 0.4);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
}

.faq-item h3 {
    color: #ffcc00;
    margin-top: 0;
    font-size: 1.15rem;
}

.faq-item p {
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Showcase Image */
.showcase-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #ffcc00;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    margin: 15px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    color: #fff;
    background-color: rgba(0, 10, 20, 0.98);
    border-top: 3px solid #ffcc00;
    margin-top: 40px;
    font-weight: 600;
}
