 @layer fonts{
    /* Lato Black Italic */
    @font-face {
        font-display: swap;
        font-family: 'Lato';
        font-style: normal;
        font-weight: 700;
        src: url('./assets/fonts/Lato-BlackItalic.ttf') format('ttf');
    }
    
    /* Montserrat Variable */
    @font-face {
        font-display: swap;
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 350;
        src: url('./assets/fonts/Montserrat-VariableFont_wght.ttf') format('ttf');
    }

    /* Poppins Regular */
    @font-face {
        font-display: swap;
        font-family: 'Poppins';
        font-style: normal;
        font-weight: 300;
        src: url('./assets/fonts/Poppins-Regular.ttf') format('ttf');
    }
    
    :root{
        --ff-mono: 'Space Mono', 'Courier New', Courier, monospace;
	    --fs-56: calc(56 / 16 * 1rem);
	    --fs-48: calc(48 / 16 * 1rem);
	    --fs-40: calc(40 / 16 * 1rem);
	    --fs-32: calc(32 / 16 * 1rem);
	    --fs-24: calc(24 / 16 * 1rem);
	    --fs-20: calc(20 / 16 * 1rem);
        --fs-15: calc(15 / 16 * 1rem);
        --fs-10: calc(10 / 16 * 1rem);
    }

    h1{
        font-size: var(--fs-40);
        letter-spacing: -2.5px;
    }

    h2{
        font-size: var(--fs-32);
        letter-spacing: -2.14px;
    }

    h3{
        font-size: var(--fs-20);
        letter-spacing: -0.89px;
    }

    h4{
        font-size: var(--fs-15);
        letter-spacing: -0.55px;
    }

    h5{
        font-size: var(--fs-10);
        letter-spacing: -0.30px;
    }
}

@layer global {
    *,
    *::before,
    *::after{
        box-sizing: border-box;
    }

    body {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        font-size: var(--fs-15);
    }

    img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    h1,
    h2,
    h3,
    p {
        text-wrap: balance;
    }

    h1,
    h2,
    h3 {
        font-family: var(--ff-mono);
        margin: 0;
        line-height: 1.1;
    }

    p{
        line-height: 1.6;
        margin: 0;
    }

    a {
        text-decoration: none;
    }

    header ul,
    footer ul {
        margin: 0;
        padding: 0;

        li {
            list-style-type: none;
        }
    }

    .visually-hidden{
        position: absolute;
        left: -10000px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
}

@layer layout { 
	.wrapper { 
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;

		/* Direct children default behavior (mimicking grid-column: 2) */
		> * { 
			flex-shrink: 0;
			width: calc(100% - 64px);

			@media (width >= calc(700 / 16 * 1rem)) { 
				width: min(calc(100% - 80px), calc(1100 / 16 * 1rem));
			}
		}

		/* Fullbleed children breakout (mimicking grid-column: 1/-1) */
		> .fullbleed { 
			width: 100%;
		}

		/* Small modifier behavior */
		&.small { 
			> * {
				@media (width >= calc(700 / 16 * 1rem)) and (width < calc(1000 / 16 * 1rem)) { 
					width: min(calc(100% - 200px), calc(1100 / 16 * 1rem));
				}
				/* Ensure fullbleed stays full size even inside .small */
				&.fullbleed {
					width: 100%;
				}
			}
		}

		/* Multi-column row behavior (.fd-col) */
		&.fd-col { 
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: center; /* Keeps columns centered together */

			> * {
				/* Width of each item in a 3-column mobile layout */
				width: calc(calc(100% - 64px) / 3); 

				@media (width >= calc(700 / 16 * 1rem)) { 
					/* Width of each item in a 6-column layout */
					width: calc(calc(100% - 80px) / 6); 
				} 

				@media (width >= calc(1000 / 16 * 1rem)) { 
					/* Width of each item in a 12-column layout */
					width: calc(calc(1100 / 16 * 1rem) / 12); 
				} 

				&.fullbleed {
					width: 100%;
				}
			}
		} 
	} 
}

@layer button {
	.button {
		display: block;
		background: var(--c-yellow);
		width: fit-content;
		padding: 12px 38px;
		color: var(--c-xdark-navy);
		font-family: var(--ff-mono);
		border: 3px solid var(--c-yellow);
		transition: 150ms ease-in-out;
		transition-property: color, border-color, background-color;

		&:hover {
			background: transparent;
			border: 3px solid var(--c-xdark-navy);
		}

		&:hover-white {
			background: transparent;
			border: 3px solid var(--c-white);
		}
	}
}

@layer header {
  .header {
	  padding-block: 20px;
	  align-items: center;
  }
  .header {
  	.header-logo-link, 
  	.header-links {
  			grid-row: 1;		
  	}

	  .header-logo-link {
	  	z-index: 12;
	  	justify-self: center;
	  	width: calc(75 / 16 * 1rem);

	  	@media (width >= calc(700 / 16 * 1rem)){
	  		justify-self: start;
	  		width: calc(108 / 16 * 1rem);
	  	}

	  	&:hover path {
	  		fill: var(--c-xdark-navy);
	  	}
	  }
	  .header-links {
	  	justify-self: start;
	  	display: grid;
	  	align-items: center;

	  	@media (width >= calc(700 / 16 * 1rem)){
	  		padding-left: 167px;
	  		width: 100%;
	  	}
	  }
  }
}

@layer topnav {
	.topnav {
		z-index: 10;
        /*display: flex;
        justify-content: end;
        align-items: center;
        padding-block: 0.5rem;*/

        &::before{
  	        content: '';
  	        position: fixed;
  	        inset: 64px 0 0 0;
  	        background: var(--c-black-overlay);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease-in-out;
        }

        &:has(.topnav__open[aria-expanded='true'])::before {
  	        opacity: 1;
        }
    }

    .topnav button {
	    /*display: block;*/
	    translate: 0 2px;
        background: none;
        border: none;
        padding: 0;

        @media (width >= calc(700 / 16 * 1rem)) {
            display: none;
        }
    }

    .topnav__open[aria-expanded='true'] {
	    display: none;

        + .topnav__menu .topnav__menu-content {
  	        opacity: 0;
            translate: 0; 

            @media (prefers-reduced-motion) {
                opacity: 1;
            }
        }

        + .topnav__menu-content::before{
	        opacity: 1;
        }

        + .topnav__menu .topnav__close {
	        display: block;
        }
    }

    .topnav__close {
        display: none;
        margin-inline-start: auto;
        margin-block-end: 8rem;
        position: absolute;
        top: 18px;
        /*translate: 0 -100%;*/

        img {
            width: 2.5rem;
        }
    }

    .topnav__menu-content {
        display: flex;
        justify-content: space-between;

        @media (width < calc(700 / 16 * 1rem)) {
            opacity: 0;
            flex-direction: column;
            position: fixed;
            inset: 64px 120px 0 0;
            padding: 64px 32px 24px;
            background-color: var(--c-xdark-navy);
            translate: -100vw 0;
            transition: translate 0.5s ease-in-out;
            transition-property: opacity;  
        }

        @media (width < calc(700 / 16 * 1rem)) and (prefers-reduced-motion) {
            translate: 0;
            opacity: 0;
            transition: opacity 500ms ease-in-out;
        }
    }

    .topnav__links {
        display: flex;
        align-items: center;
        gap: 1rem;
        /*align-items: center;*/
        margin: 0;
        padding: 0;

        @media (width < calc(700 / 16 * 1rem)) {
            flex-direction: column;
            align-items: stretch;
        }  
    }

    .topnav__item {
        list-style-type: none;

        /*&:last-child {
        @media (width < calc(700 / 16 * 1rem)) {
  		/*display: block;
        margin-top: 200px;
    */}

  	/*@media (width >= calc(700 / 16 * 1rem)) {
  	    margin-inline-start: 80px;
  	}

  	@media (width >= calc(1000 / 16 * 1rem)) {
  	    margin-left: auto;
  	}
    }*/

    .topnav_link {
	    font-family: var(--ff-mono);
	    font-weight: 700;
        color: var(--c-light-grey);
        transition: color 150ms ease-in-out;

	    @media (width >= calc(700 / 16 * 1rem)){
		    color: var(--c-dim-grey);
	    }

	    &:hover {
		    color: var(--c-dark-navy);
	    }
    }
}

@layer main {
    .main {
        display: flex;
    }
}


/* school page style goes here */
@layer features-sm {
    .features-sm{
        .gray-line {
            display: none;
            position: relative;
            background: var(--c-light-grey);
            z-index: -1;

            &.tablet {
                @media (width >= 43.75rem) and (width < 62.5rem) { /* 700px and 1000px */
                    display: block;
                    left: calc(96px / 2);
                    translate: -50% 0;
                    z-index: -1;
                    width: 15px;
                    height: calc(100% + 20px);
                    background: var(--c-light-grey);
                    grid-column: 1 / -1;
                    grid-row: 1 / 4;
                }
            }

            &.desktop-small {
                @media (width >= 62.5rem) {
                    position: absolute;
                    display: block;
                    width: 100%;
                    height: 15px;
                    grid-column: 2 / 3;
                    translate: 45px calc(120px + 96px / 2 - 50%);
                }
            }

            &.desktop-large {
                @media (width >= 62.5rem) {
                    display: block;
                    height: 15px;
                    grid-column: 1 / -2;
                    width: calc(100% - 320px);
                    translate: 0 calc(120px + 96px / 2 + 50%);
                    grid-row: 1;
                }
            }
        }

        .features-sm-grid {
            position: relative;
            display: grid;
            padding-block: 120px;

            @media (width < calc(700 / 16 * 1rem)) and (width < calc(700 / 16 * 1rem)){
                grid-template-rows: 120px repeat(3, auto);
                gap: 0;
                padding-block: 0 145px;
            }

            @media (width >= calc(1000 / 16 * 1rem)) {
                grid-template-columns: repeat(3, 1fr);
                gap: 30px;
            }
        }

        .feature-sm {
            display: grid;

            @media (width >= calc(700 / 16 * 1rem)) and (width < calc(1000 / 16 * 1rem)){
                grid-column: 1 / -1;
                margin-block-end: 48px;
                gap: 24px;
                text-align: center;
                justify-items: center;
                
            }
        }
    }
        
}

@layer school-hero {
  .school-hero {
    height: 85vh;
    width: 100%;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
  }
 
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
  }
}



@layer school{
    .school {
        display: flex;
        flex-direction: column;
        padding: 65px;
    }

    .school-hist-obj{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        gap: 20px;
        padding: 65px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
    }

    .school-hist-obj h1{
        text-align: center;
    }

    .school-hist-obj p{
        text-align: center;
    }

    .school-learners-num{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .school-learners-num-primary,
    .school-learners-num-secondary,
    .school-learners-num-high-school {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .counter {
        display: block;
    }
}

@layer location{
    .location{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 65px;
        margin-bottom: 150px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .address{
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 50px;
        justify-content: center;
    }

    /*.address {
        display: flex;
        flex-direction: column;
    }*/

    .map{
        display: flex;
    }
}

@layer register-a-learner{
    .register-a-learner {
        display: flex;
        flex-direction: column;
        padding: 25px;
        margin-bottom: 55px;
    }

    .register-a-learner-content{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        gap: 20px;
        padding: 25px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
    }

    .registration-text p{
        text-align: center;
    }

    .hero-registration-text-btn {
        background-color: hsl(12, 86%, 57%);
        width: 20%;
        color: hsl(0, 0%, 0%);
        font-size: var(--fs-20);
        text-align: center;
        margin: 0 auto;
        border: 2px solid hsl(5, 74%, 41%);
        border-radius: 12px;
        padding: 10px 15px;
        text-decoration: none;
        cursor: pointer;
    }

    .hero-registration-text-btn:hover {
        background-color: hsl(45, 97%, 86%);
        color: hsl(12, 86%, 57%);
    }
}

/* cycles page style goes here */
@layer cycles-hero {
  .cycles-hero {
    height: 90vh;
    width: 100%;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
  }
 
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
  }
}

@layer cycle{
    .cycle {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 65px;
    }
    .cycle-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        gap: 20px;
        padding: 65px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
        /*margin-bottom: 45px;*/
    }

    .cycle-header h2{
        text-align: center;
    }

    .cycle-body p{
        text-align: center;
    }

    .cycle-bottom {
        background-color: hsl(12, 86%, 57%);
        color: hsl(0, 0%, 0%);
        font-size: var(--fs-20);
        text-align: center;
        width: 45%;
        border: 2px solid hsl(5, 74%, 41%);
        border-radius: 12px;
        padding: 10px 15px;
        text-decoration: none;
        cursor: pointer;
        margin: 0 auto;
    }

    .cycle-bottom:hover {
        background-color: hsl(45, 97%, 86%);
        color: hsl(12, 86%, 57%);
    }
}


/* connexion page style goes here */
@layer hero-connexion {
    .hero-connexion {
        display: flex;
        flex-direction: column;   
        justify-content: center;   
        align-items: center;       
        text-align: center;        
        min-height: 80vh; 
        color: hsl(0, 0%, 100%);
        background: hsl(17, 30%, 32%);
    }

    .hero-content {
        margin-bottom: 20px; 
    }
}

@layer connexion-links {
    .connexion-links {
        display: flex;
        padding: 65px;
        flex-direction: row;
        flex-wrap: wrap; 
        gap: 20px; 
        justify-content: space-between;
    }

    .e-learning, .prof {
        flex: 1 1 calc(33.333% - 120px); 
        min-width: 250px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        
    }

    .e-learning-img, .prof-img{
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .e-learning-title, .prof-title{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .e-learning-btn, .prof-btn {
        display: inline-block;
        background-color: hsl(60, 70%, 55%);
        color: hsl(0, 0%, 0%);
        font-size: var(--fs-20);
        border: 2px solid hsl(62, 68%, 43%);
        border-radius: 12px;
        padding: 10px 15px;
        text-decoration: none;
        cursor: pointer;
        text-align: center;
    }

    .e-learning-btn:hover, .prof-btn:hover {
        background-color: hsl(45, 97%, 86%);
        color: hsl(12, 86%, 57%);
    }
}

@layer results-access{
    .results-access{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .results-access-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        gap: 20px;
        padding: 65px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
    }

    .results-access-head{
        display: flex;
        flex-direction: column;
        padding: 40px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
        margin-bottom: 55px;
    }
    
    .results-access-head p{
        text-align: center;
    }

    .results-access-body{
        display: flex;
    }

    .results-login-card{
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: hsl(240, 100%, 50%);
        width: 200px;
        height: 200px;
        margin: 0 auto;
        border-radius: 50%;
        border: 1px solid hsl(185, 93%, 35%);
    }

    .results-login-card a{
        color: hsl(0, 0%, 100%);
        text-decoration: underline;
    }
}

@layer home-school-diary{
    .home-school-diary{
        display: flex;
        padding: 65px;
    }

    .home-school-diary-cntnt{
        display: flex;
        flex-direction: row;
        width: 1200px;
        gap: 20px;
        padding: 40px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
        margin: 0 auto;
    }

    .home-school-diary-learners, 
    .home-school-diary-parents {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: hsl(240, 100%, 50%);
        width: 200px;
        height: 200px;
        margin: 0 auto;
        border-radius: 50%;
        border: 1px solid hsl(185, 93%, 35%);
    }

    .home-school-diary-learners a, 
    .home-school-diary-parents a{
        color: hsl(0, 0%, 100%);
        text-decoration: underline;
    }

}

/* payment page style goes here */
@layer hero-payer {
    .hero-payer {
        display: flex;
        flex-direction: column;   
        justify-content: center;   
        align-items: center;       
        text-align: center;        
        min-height: 80vh; 
        color: hsl(0, 0%, 100%);
        background: hsl(17, 30%, 32%);
    }
}

@layer tuition-fees-payment{
    .tuition-fees-payment {
        display: flex;
        padding: 65px;
    }

    .tuition-fees-payment-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 1200px;
        gap: 20px;
        padding: 45px;
        border-radius: 25px;
        border: 1px solid hsl(185, 93%, 35%);
    }

    .fees {
        display: flex;
        flex-direction: row;
        gap: 40px;
    }
    .school-fees, .exam-other-fees {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@layer payment-steps{
    .payment-steps{
        background-color: hsl(0, 0%, 50%);
        width: 100%;
        height: 240px;
        margin-bottom: 55px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /*.payment-steps-content{
        display: flex;
        flex-direction: column;
    }*/

    .payment-steps-card{
        display: flex;
        flex-direction: row;
        gap: 35px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    .payment-step-one, 
    .payment-step-two, 
    .payment-step-three, 
    .payment-step-four {
        width: 240px;
        height: 150px;
        background-color: hsl(0, 0%, 100%);
        border-radius: 5px;
    }
}

/* activities page style goes here */
@layer activities-hero {
  .activities-hero {
    height: 85vh;
    width: 100%;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
  }
 
  .hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
  }
}

@layer eglise-evangelique-du-congo{
    .eglise-evangelique-du-congo{
        display: flex;
        gap: 65px;
        padding: 65px;
    }

    .eglise-evangelique-du-congo-content{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
        padding: 45px;
        border-radius: 25px;
        border: 2px solid hsl(185, 93%, 35%);
    }

    .eglise-evangelique-du-congo-content p{
        text-align: center;
    }
}

@layer outdoors-activities {
    .outdoors-activities{
        display: flex;
        flex-direction: column;
        padding: 65px;
    }

    .outdoors-activities-content{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
        padding: 45px;
        border-radius: 25px;
        border: 2px solid hsl(185, 93%, 35%);
    }
}

@layer EEC-youth-days{
    .EEC-youth-days{
        display: flex;
        flex-direction: column;
        padding: 65px;
    }

    .EEC-youth-days-content{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
        padding: 45px;
        border-radius: 25px;
        border: 2px solid hsl(185, 93%, 35%);
    }
}

@layer sports-activities{
    .sports-activities{
        display: flex;
        flex-direction: column;
        padding: 65px;
    }

    .sports-activities-content{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
        padding: 45px;
        border-radius: 25px;
        border: 2px solid hsl(185, 93%, 35%);
    }
}

/* footer style for all the eemf goes here */
@layer footer {
    /* Base Footer Styles */
    .curved-footer {
        background-image: linear-gradient(to right, hsl(185, 93%, 35%), hsl(0, 0%, 0%)); 
        /*background-color: #1a1a1a;*/ /* Dark background example */
        color: #ffffff;
        padding: 60px 20px 30px 20px;
        position: relative;
    
        /* 1. Curved Top Effect */
        border-top-left-radius: 50% 40px;
        border-top-right-radius: 50% 40px;
    }

    /* Main Container Layout */
    .footer-content {
        display: flex;
        flex-direction: column;
        max-width: 1200px;
        margin: 0 auto;
        gap: 40px;
    }

    /* Top Section (Contact) */
    .footer-ceontent-top {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-bottom: 1px solid hsl(0, 0%, 100%);
        padding-bottom: 20px;
    }

    .footer-ceontent-top h3 {
        margin: 0 0 4px 0;
    }

    .footer-ceontent-top h5 {
        margin: 0;
        font-weight: normal;
    }

    /* Middle Section (Columns Layout) */
    .footer-content-middle {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap; /* Keeps it responsive on smaller screens */
        gap: 30px;
    }

    /* Sub-containers alignment */
    .footer-content-middle-left,
    .footer-content-middle-middle,
    .footer-content-middle-right {
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex: 1; /* Distributes width evenly */
        min-width: 200px; /* Prevents columns from becoming too narrow */
    }

    /* Link Lists */
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        color: #cccccc;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-links a:hover {
        color: #ffffff;
    }

    /* Social Media Icons */
    .social-links {
        display: flex;
        gap: 15px;
    }

    .social-links a {
        color: #ffffff;
        font-size: 1.2rem;
        transition: transform 0.2s ease;
    }

    .social-links a:hover {
        transform: translateY(-3px);
    }

    /* Bottom Section (Copyright/Legal) */
    .footer-content-bottom {
        border-top: 1px solid hsl(0, 0%, 100%);
        padding-top: 20px;
        font-size: 0.9rem;
        color: #888888;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-content-bottom-left {
        display: flex;
        gap: 20px;
    }

    .footer-content-bottom-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .footer-content-bottom-left h6{
        color: #cccccc;
    }

    .ABA-link {
        color: #cccccc;
    }
}