/*
Theme Name: Sharkway Theme
Author: Adham Eldeeb
*/


   @import url('https://fonts.googleapis.com/css2?family=Rakkas&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --card-height: 50vw;
    --card-margin: 4vw;
    --card-top-offset: 1em;
    --numcards: 6;

    /* Modern palette */
    --indigo-dye: #133c55ff;
    --bice-blue: #386fa4ff;
    --picton-blue: #59a5d8ff;
    --carrot-orange: #f18f01ff;
    --white: #ffffffff;
    --bg: #f9fcff;
    --bg-light: #f9fbfd;
    --text-light: #fff;
    --text-dark: #133c55;
    --heading2: #1565c0;
    --highlight: #59a5d8;
    --primary: #1565c0;

    /* Card-specific colors */
    --card-bg: var(--bg-light);
    --heading-color: var(--heading2);
    --text-color: var(--text-dark);
}

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

body {
    background: var(--bg);
    color: var(--text-dark);
}

#cards-honored {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--numcards), var(--card-height));
    gap: var(--card-margin);
    padding: 2em;
    padding-bottom: calc(var(--numcards) * var(--card-top-offset));
    margin-bottom: var(--card-margin);
}

.card-honored {
    position: sticky;
    top:0;
    padding-top: var(--card-top-offset);
    transform-origin: 50% 0%;
    will-change: transform;
    border-radius: 1em;
    overflow: hidden;
    max-width: 90%;
    margin: 0 auto;
}

.card__content-honored {
    display: grid;
    grid-template-areas: "text img";
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--card-bg);
    border-radius: 1em;
    padding: 4em;
    gap: 1em;
    box-shadow: 0 0.5em 1.5em rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.card__content-honored > div {
    grid-area: text;
    width: 90%;
    display: grid;
    gap: 0.5em;
    place-items: start;
}

.card__content-honored h3 {
    font-family: Inter, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(20.2rem, 28vw, 24.8em);
    color: var(--heading-color);
    margin-bottom: 0.3em;
    letter-spacing: 0.03125rem;
}

.card__content-honored p {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1em);
    color: var(--text-color);
    line-height: 1.6;
}

.card__content-honored .images-honored {
    grid-area: img;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1em;
}

.card__content-honored .images-honored img {
    width: 12.5rem;
    height: 20.5rem;
    object-fit: cover;
    border-radius: 0.5em;
    box-shadow: 0 0.2em 0.5em rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card__content-honored .images-honored img.full-suhag {
  width: 20rem;
    height: 12.5rem;
    object-fit: cover;
} 
.card__content-honored .images-honored img:hover {
    transform: scale(1.03);
    box-shadow: 0 0.4em 1em rgba(0,0,0,0.12);
}

.wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
}

.frame {
    position: relative;
    background: #fdf8f2; 
    border: 0.75rem solid #8b5e3c;
    border-radius: 0.75rem;
    padding: 0.5rem;
    width: 15.625rem;
    box-shadow: 0 0.625rem 1.5625rem rgba(0,0,0,0.35), inset 0 0 0.5rem rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.frame.horizontal { 
    width: 20rem; 
}

.frame img {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
}

.frame::before {
    content: '';
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.125rem;
    height: 1.75rem;
    background: #555;
}

.frame:hover { 
    transform: scale(1.08); 
    box-shadow: 0 0.9375rem 2.1875rem rgba(0,0,0,0.45), inset 0 0 0.625rem rgba(0,0,0,0.15);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left:0; 
    top:0;
    width:100%; 
    height:100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 0.625rem;
    right: 0.9375rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#lightbox {
  display: none; 
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  overflow: auto; 
  padding: 1em;
}

#lightbox.show {
  display: flex;
  opacity: 1;
  width: 100%;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  transform: scale(1);
}

#lightbox img:hover {
  transform: scale(1.1);
}

/* Adding comprehensive responsive breakpoints for all screen sizes */

/* Extra small screens (360px) */
@media (max-width: 22.5rem) {
    :root {
        --card-height: 70vw;
        --card-margin: 2vw;
        --card-top-offset: 0.5em;
    }
    
    .card__content-honored {
        grid-template-areas: "img" "text";
        grid-template-columns: 1fr;
        padding: 1.5rem;
        font-size: 0.875rem;
        gap: 1rem;
    }
    
    .card__content-honored > div {
        width: 100%;
    }
    
    .card__content-honored h3 {
        font-size: 1.1rem;
    }
    
    .card__content-honored p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .card__content-honored .images-honored {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .card__content-honored .images-honored img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .wall {
        gap: 2rem;
        padding: 1rem;
    }
    
    .frame {
        width: 10rem;
        border-width: 0.5rem;
        padding: 0.375rem;
    }
    
    .frame.horizontal {
        width: 13rem;
    }
    
    .frame::before {
        top: -1.25rem;
        height: 1.25rem;
    }
    
    #lightbox img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Small screens (480px) */
@media (max-width: 30rem) {
    :root {
        --card-height: 65vw;
        --card-margin: 3vw;
        --card-top-offset: 0.75em;
    }
    
    .card__content-honored {
        grid-template-areas: "img" "text";
        grid-template-columns: 1fr;
        padding: 2rem;
        font-size: 1rem;
        gap: 1.25rem;
    }
    
    .card__content-honored > div {
        width: 100%;
    }
    
    .card__content-honored h3 {
        font-size: 1.3rem;
    }
    
    .card__content-honored p {
        font-size: 0.9rem;
    }
    
    .card__content-honored .images-honored {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .card__content-honored .images-honored img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .wall {
        gap: 2.5rem;
        padding: 1.5rem;
    }
    
    .frame {
        width: 11.25rem;
        border-width: 0.625rem;
    }
    
    .frame.horizontal {
        width: 15rem;
    }
}

/* Medium screens (768px) */
@media (max-width: 48rem) {
    :root {
        --card-height: 55vw;
        --card-margin: 3.5vw;
    }
    
    .card__content-honored {
        grid-template-areas: "img" "text";
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 1.5rem;
    }
    
    .card__content-honored > div {
        width: 100%;
    }
    
    .card__content-honored h3 {
        font-size: 1.5rem;
    }
    
    .card__content-honored p {
        font-size: 1rem;
    }
    
    .card__content-honored .images-honored {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card__content-honored .images-honored img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .wall {
        gap: 3rem;
    }
    
    .frame {
        width: 11.25rem;
    }
    
    .frame.horizontal {
        width: 15rem;
    }
}

/* Large screens (1024px) */
@media (min-width: 64rem) {
    :root {
        --card-height: 45vw;
        --card-margin: 4.5vw;
    }
    
    .card__content-honored {
        padding: 4.5rem;
        gap: 1.5rem;
    }
    
    .card__content-honored h3 {
        font-size: 2rem;
    }
    
    .card__content-honored p {
        font-size: 1.1rem;
    }
    
    .card__content-honored .images-honored img {
        width: 13.75rem;
        height: 13.75rem;
    }
    
    .wall {
        gap: 4.5rem;
    }
    
    .frame {
        width: 17.5rem;
    }
    
    .frame.horizontal {
        width: 22.5rem;
    }
}

/* Extra large screens (1700px) */
@media (min-width: 106.25rem) {
    :root {
        --card-height: 40vw;
        --card-margin: 5vw;
    }
    
    #cards-honored {
        padding: 3rem;
    }
    
    .card__content-honored {
        padding: 5rem;
        gap: 2rem;
        font-size: 1.75rem;
    }
    
    .card__content-honored h3 {
        font-size: 2.5rem;
        letter-spacing: 0.0625rem;
    }
    
    .card__content-honored p {
        font-size: 1.3rem;
        line-height: 1.7;
    }
    
    .card__content-honored .images-honored {
        gap: 1.5rem;
    }
    
    .card__content-honored .images-honored img {
        width: 16.25rem;
        height: 16.25rem;
        border-radius: 0.75rem;
    }
    
    .wall {
        gap: 5rem;
    }
    
    .frame {
        width: 20rem;
        border-width: 0.875rem;
        padding: 0.625rem;
    }
    
    .frame.horizontal {
        width: 26rem;
    }
    
    .frame::before {
        top: -2rem;
        height: 2rem;
        width: 0.1875rem;
    }
    
    #lightbox img {
        max-width: 75%;
        max-height: 75%;
        border-radius: 1rem;
    }
    
    .modal-close {
        font-size: 2.5rem;
        top: 1rem;
        right: 1.5rem;
    }
}

/* Ultra large screens (2500px) */
@media (min-width: 156.25rem) {
    :root {
        --card-height: 35vw;
        --card-margin: 5.5vw;
    }
    
    #cards-honored {
        padding: 4rem;
    }
    
    .card__content-honored {
        padding: 6rem;
        gap: 2.5rem;
        font-size: 2rem;
        border-radius: 1.5rem;
    }
    
    .card__content-honored h3 {
        font-size: 3rem;
        letter-spacing: 0.09375rem;
    }
    
    .card__content-honored p {
        font-size: 1.6rem;
        line-height: 1.8;
    }
    
    .card__content-honored .images-honored {
        gap: 2rem;
    }
    
    .card__content-honored .images-honored img {
        width: 20rem;
        height: 20rem;
        border-radius: 1rem;
    }
    
    .wall {
        gap: 6rem;
    }
    
    .frame {
        width: 25rem;
        border-width: 1rem;
        padding: 0.75rem;
        border-radius: 1rem;
    }
    
    .frame.horizontal {
        width: 32rem;
    }
    
    .frame::before {
        top: -2.5rem;
        height: 2.5rem;
        width: 0.25rem;
    }
    
    #lightbox img {
        max-width: 70%;
        max-height: 70%;
        border-radius: 1.25rem;
    }
    
    .modal-close {
        font-size: 3rem;
        top: 1.5rem;
        right: 2rem;
    }
}

/* Extreme large screens (3000px) */
@media (min-width: 187.5rem) {
    :root {
        --card-height: 30vw;
        --card-margin: 6vw;
    }
    
    #cards-honored {
        padding: 5rem;
    }
    
    .card__content-honored {
        padding: 7rem;
        gap: 3rem;
        font-size: 2.25rem;
        border-radius: 2rem;
    }
    
    .card__content-honored h3 {
        font-size: 3.5rem;
        letter-spacing: 0.125rem;
    }
    
    .card__content-honored p {
        font-size: 1.9rem;
        line-height: 1.9;
    }
    
    .card__content-honored .images-honored {
        gap: 2.5rem;
    }
    
    .card__content-honored .images-honored img {
        width: 23.75rem;
        height: 23.75rem;
        border-radius: 1.25rem;
    }
    
    .wall {
        gap: 7rem;
    }
    
    .frame {
        width: 30rem;
        border-width: 1.25rem;
        padding: 1rem;
        border-radius: 1.25rem;
    }
    
    .frame.horizontal {
        width: 38rem;
    }
    
    .frame::before {
        top: -3rem;
        height: 3rem;
        width: 0.3125rem;
    }
    
    #lightbox img {
        max-width: 65%;
        max-height: 65%;
        border-radius: 1.5rem;
    }
    
    .modal-close {
        font-size: 3.5rem;
        top: 2rem;
        right: 2.5rem;
    }
}

/* Touch device hover adjustments */
@media (hover: none) and (pointer: coarse) {
    .card__content-honored .images-honored img:hover,
    .frame:hover {
        transform: none;
        box-shadow: inherit;
    }
}

.footer-bottom a{
  margin-top: 10px;
  font-weight: 700;
  text-decoration: none;   
  color: inherit;    
  background: none;      
  border: none;          
  outline: none;  
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px;
  color: #ffffff;
}